mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 15:41:48 +00:00
Runtime/GuiSys: Replace bitfield unions with constructor initializers
This commit is contained in:
@@ -22,14 +22,9 @@ private:
|
||||
std::array<CGuiWidget*, 2> xcc_sliderRangeWidgets{};
|
||||
std::function<void(CGuiSliderGroup*, float)> xd8_changeCallback;
|
||||
EState xf0_state = EState::None;
|
||||
union {
|
||||
struct {
|
||||
bool xf4_24_inputPending : 1;
|
||||
mutable bool m_mouseInside : 1;
|
||||
bool m_mouseDown : 1;
|
||||
};
|
||||
u32 _dummy = 0;
|
||||
};
|
||||
bool xf4_24_inputPending : 1;
|
||||
mutable bool m_mouseInside : 1;
|
||||
bool m_mouseDown : 1;
|
||||
|
||||
mutable float m_mouseT = 0.f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user