From 544bd0c353cf54c28b9bb3e0714f17b16a257731 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 3 Mar 2022 15:02:42 +0100 Subject: 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). --- source/blender/windowmanager/WM_types.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/windowmanager/WM_types.h') 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; -- cgit v1.2.3