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 /intern/ghost/GHOST_Rect.h
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 'intern/ghost/GHOST_Rect.h')
-rw-r--r--intern/ghost/GHOST_Rect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/GHOST_Rect.h b/intern/ghost/GHOST_Rect.h
index 1cbc75fe60b..15fa546fb07 100644
--- a/intern/ghost/GHOST_Rect.h
+++ b/intern/ghost/GHOST_Rect.h
@@ -244,7 +244,7 @@ inline void GHOST_Rect::wrapPoint(int32_t &x, int32_t &y, int32_t ofs, GHOST_TAx
x -= w - (ofs * 2);
}
}
- if (axis & GHOST_kGrabAxisY) {
+ if (axis & GHOST_kAxisY) {
while (y - ofs < m_t) {
y += h - (ofs * 2);
}