diff options
author | Julian Eisel <julian@blender.org> | 2022-03-03 17:02:42 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-03-03 17:04:45 +0300 |
commit | 544bd0c353cf54c28b9bb3e0714f17b16a257731 (patch) | |
tree | 5d24be665696bcee4221bba433b3a5eeded870be /source/blender/windowmanager/WM_types.h | |
parent | 1b863041c9746029bd6d867539550043944822d9 (diff) |
Cleanup: Remove redundant drag image size parameters
Just use the image-buffer size and the already provided scale to
determine the size, not the button size (which would always have to
match the scaled image-buffer size or it would give unexpected results).
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index c4858a8a1fa..1f9f3e2c180 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -1106,8 +1106,7 @@ typedef struct wmDrag { /** If no icon but imbuf should be drawn around cursor. */ struct ImBuf *imb; - float scale; - int sx, sy; + float imbuf_scale; wmDragActiveDropState drop_state; |