mirror of https://github.com/AxioDL/metaforce.git
Merge pull request #78 from lioncash/const2
CGuiWidgetDrawParms: Mark Default instance as const
This commit is contained in:
commit
88e057bf11
|
@ -1,5 +1,5 @@
|
||||||
#include "CGuiWidgetDrawParms.hpp"
|
#include "CGuiWidgetDrawParms.hpp"
|
||||||
|
|
||||||
namespace urde {
|
namespace urde {
|
||||||
CGuiWidgetDrawParms CGuiWidgetDrawParms::Default = {};
|
const CGuiWidgetDrawParms CGuiWidgetDrawParms::Default = {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ struct CGuiWidgetDrawParms {
|
||||||
CGuiWidgetDrawParms() = default;
|
CGuiWidgetDrawParms() = default;
|
||||||
CGuiWidgetDrawParms(float alphaMod, const zeus::CVector3f& cameraOff)
|
CGuiWidgetDrawParms(float alphaMod, const zeus::CVector3f& cameraOff)
|
||||||
: x0_alphaMod(alphaMod), x4_cameraOffset(cameraOff) {}
|
: x0_alphaMod(alphaMod), x4_cameraOffset(cameraOff) {}
|
||||||
static CGuiWidgetDrawParms Default;
|
static const CGuiWidgetDrawParms Default;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace urde
|
} // namespace urde
|
||||||
|
|
Loading…
Reference in New Issue