Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-06-27 13:31:28 +0300
committerCampbell Barton <campbell@blender.org>2022-06-27 13:36:40 +0300
commita61792968363bbd443f03186e77fef77ddbf88a7 (patch)
tree7ae168d0e89f03d5dbed24cb12be0c3033ad651f /source/blender/windowmanager/intern/wm_draw.c
parent3cf6516e7b917bd81d7147b57baafe2495c759f4 (diff)
Cleanup: rename misleading/inconsistent GHOST types
Remove mask suffix from: - GHOST_TButtonMask - GHOST_TModifierKeyMask .. neither are used as bit-masks. Remove 'Grab' from: - GHOST_kGrabAxisNone - GHOST_kGrabAxisY .. matching the existing GHOST_TAxisFlag & GHOST_kAxisX.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_draw.c')
-rw-r--r--source/blender/windowmanager/intern/wm_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_draw.c b/source/blender/windowmanager/intern/wm_draw.c
index b6953b21b65..66ed36b373d 100644
--- a/source/blender/windowmanager/intern/wm_draw.c
+++ b/source/blender/windowmanager/intern/wm_draw.c
@@ -309,7 +309,7 @@ static void wm_software_cursor_draw(wmWindow *win, const struct GrabState *grab_
event_xy[0] = mod_i(event_xy[0] - min, max - min) + min;
}
}
- if (grab_state->wrap_axis & GHOST_kGrabAxisY) {
+ if (grab_state->wrap_axis & GHOST_kAxisY) {
const int height = WM_window_pixels_y(win);
const int min = height - grab_state->bounds[1];
const int max = height - grab_state->bounds[3];