diff options
author | Julian Eisel <julian@blender.org> | 2022-05-12 16:53:12 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-05-12 17:56:14 +0300 |
commit | 3693e1d8e80501c6efcb8f732107742f80acf773 (patch) | |
tree | 2fc6177061859beff71ffd3413fad4131724be82 /source/blender/editors/interface/interface.cc | |
parent | c31f519954f2b21fecc86b1b3b9386685226dbdc (diff) |
Revert commits to increase button flag bitfield size
This reverts the commits 8d9d5da13706b668b9bd0d631e00c9b00b73f3ea,
59cd616534b46ab85b4324a0886bd9eb8876a48b and
98a04ed4524234b1840dc039c2f356db5ac57f26.
The commits are causing issues with MSVC, see D14926. I'm working on a
different solution, but that will need some work.
Diffstat (limited to 'source/blender/editors/interface/interface.cc')
-rw-r--r-- | source/blender/editors/interface/interface.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/interface/interface.cc b/source/blender/editors/interface/interface.cc index effd3a64fcd..b7098c26bcd 100644 --- a/source/blender/editors/interface/interface.cc +++ b/source/blender/editors/interface/interface.cc @@ -848,7 +848,7 @@ static void ui_but_update_old_active_from_new(uiBut *oldbut, uiBut *but) BLI_assert(oldbut->active); /* flags from the buttons we want to refresh, may want to add more here... */ - const uint64_t flag_copy = UI_BUT_REDALERT | UI_HAS_ICON | UI_SELECT_DRAW; + const int flag_copy = UI_BUT_REDALERT | UI_HAS_ICON | UI_SELECT_DRAW; const int drawflag_copy = 0; /* None currently. */ /* still stuff needs to be copied */ @@ -991,7 +991,7 @@ static bool ui_but_update_from_old_block(const bContext *C, found_active = true; } else { - uint64_t flag_copy = UI_BUT_DRAG_MULTI; + int flag_copy = UI_BUT_DRAG_MULTI; /* Stupid special case: The active button may be inside (as in, overlapped on top) a tree-row * button which we also want to keep highlighted then. */ @@ -4219,7 +4219,7 @@ static uiBut *ui_def_but(uiBlock *block, return but; } -void ui_def_but_icon(uiBut *but, const int icon, const uint64_t flag) +void ui_def_but_icon(uiBut *but, const int icon, const int flag) { if (icon) { ui_icon_ensure_deferred(static_cast<const bContext *>(but->block->evil_C), @@ -5806,17 +5806,17 @@ void UI_block_flag_disable(uiBlock *block, int flag) block->flag &= ~flag; } -void UI_but_flag_enable(uiBut *but, uint64_t flag) +void UI_but_flag_enable(uiBut *but, int flag) { but->flag |= flag; } -void UI_but_flag_disable(uiBut *but, uint64_t flag) +void UI_but_flag_disable(uiBut *but, int flag) { but->flag &= ~flag; } -bool UI_but_flag_is_set(uiBut *but, uint64_t flag) +bool UI_but_flag_is_set(uiBut *but, int flag) { return (but->flag & flag) != 0; } |