Use inline function

This commit is contained in:
Christian Semmler 2024-02-24 11:31:16 -05:00
parent c1b4ee1859
commit d133f3dad0
2 changed files with 2 additions and 3 deletions

View File

@ -63,9 +63,7 @@ MxResult LegoModelPresenter::CreateROI(MxStreamChunk* p_chunk)
MxMatrix mat;
LegoChar* textureName = NULL;
LegoTexture* texture = NULL;
LegoS32 hardwareMode = VideoManager()->GetDirect3D()->AssignedDevice()->GetFlags();
hardwareMode = (hardwareMode << 31) >> 31;
LegoS32 hardwareMode = VideoManager()->GetDirect3D()->AssignedDevice()->GetHardwareMode();
if (m_roi) {
delete m_roi;

View File

@ -22,6 +22,7 @@ class MxAssignedDevice {
~MxAssignedDevice();
inline unsigned int GetFlags() { return m_flags; }
inline BOOL GetHardwareMode() { return ((int) m_flags << 31) >> 31; }
inline D3DDEVICEDESC& GetDesc() { return m_desc; }
friend class MxDirect3D;