Fix T63040: Resizing node has offset

This broke in rB6500b31728d870506207d9d70837b171cbef32ea.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D4607
This commit is contained in:
Jacques Lucke 2019-03-28 14:56:55 +01:00
parent deb3b8301a
commit fe9c9a313f
Notes: blender-bot 2023-02-14 03:12:12 +01:00
Referenced by issue #63040, Resizing Nodes has offset when using hiDPI display
1 changed files with 2 additions and 2 deletions

View File

@ -848,8 +848,8 @@ static void node_resize_init(bContext *C, wmOperator *op, const wmEvent *UNUSED(
NodeSizeWidget *nsw = MEM_callocN(sizeof(NodeSizeWidget), "size widget op data");
op->customdata = nsw;
nsw->mxstart = snode->cursor[0];
nsw->mystart = snode->cursor[1];
nsw->mxstart = snode->cursor[0] * UI_DPI_FAC;
nsw->mystart = snode->cursor[1] * UI_DPI_FAC;
/* store old */
nsw->oldlocx = node->locx;