diff options
author | Severin <eiseljulian@gmail.com> | 2018-06-28 22:07:30 +0300 |
---|---|---|
committer | Severin <eiseljulian@gmail.com> | 2018-06-28 22:07:30 +0300 |
commit | 4d1c5f1ec51e7978c76271730d479e0aef15c63a (patch) | |
tree | 5aec39486b982f54d0d049da0666f12bbd008ccd /source/blender/editors/screen/screen_ops.c | |
parent | c7954df96c7ebfdb6db5048ed8e1b855bc924006 (diff) |
Change earlier fix to work with hiDPI
Referring to ca8f787349dcdf5. Thought in this case the simple `+ 1` would be
correct, but we need to make the same pixel adjustment as we do in other places.
Diffstat (limited to 'source/blender/editors/screen/screen_ops.c')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 201a7d438ed..be5b77bbd3a 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -1763,7 +1763,7 @@ static int area_split_apply(bContext *C, wmOperator *op) fac = RNA_float_get(op->ptr, "factor"); dir = RNA_enum_get(op->ptr, "direction"); - sd->narea = area_split(sc, sd->sarea, dir, fac, 0); /* 0 = no merge */ + sd->narea = area_split(CTX_wm_window(C), sc, sd->sarea, dir, fac, 0); /* 0 = no merge */ if (sd->narea) { ScrVert *sv; |