mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Use inline function
This commit is contained in:
parent
c1b4ee1859
commit
d133f3dad0
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user