diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-02-22 19:18:26 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-02-22 19:18:32 +0300 |
commit | 1ec626f4bd06e830edc13a8a6986eec2885499dd (patch) | |
tree | 5b93dee581ac5aeacde448e36332cdc1dd20e564 /source/blender/editors/gpencil | |
parent | 80793fc740cb8a15402527df091f426f0dd30b7b (diff) |
Fix T85549: GPencil draw tool offset when UI scale is not 1
There was a mistake in the variables saved and when resolution of the UI was not 1.0, the viewport was offset.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_fill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c index a81d319ab42..bf228af88a5 100644 --- a/source/blender/editors/gpencil/gpencil_fill.c +++ b/source/blender/editors/gpencil/gpencil_fill.c @@ -621,8 +621,8 @@ static bool gpencil_render_offscreen(tGPDfill *tgpf) } /* set temporary new size */ - tgpf->bwinx = tgpf->region->sizex; - tgpf->bwiny = tgpf->region->sizey; + tgpf->bwinx = tgpf->region->winx; + tgpf->bwiny = tgpf->region->winy; tgpf->brect = tgpf->region->winrct; /* resize region */ |