mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-29 03:01:15 +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;
|
MxMatrix mat;
|
||||||
LegoChar* textureName = NULL;
|
LegoChar* textureName = NULL;
|
||||||
LegoTexture* texture = NULL;
|
LegoTexture* texture = NULL;
|
||||||
|
LegoS32 hardwareMode = VideoManager()->GetDirect3D()->AssignedDevice()->GetHardwareMode();
|
||||||
LegoS32 hardwareMode = VideoManager()->GetDirect3D()->AssignedDevice()->GetFlags();
|
|
||||||
hardwareMode = (hardwareMode << 31) >> 31;
|
|
||||||
|
|
||||||
if (m_roi) {
|
if (m_roi) {
|
||||||
delete m_roi;
|
delete m_roi;
|
||||||
|
|||||||
@ -22,6 +22,7 @@ class MxAssignedDevice {
|
|||||||
~MxAssignedDevice();
|
~MxAssignedDevice();
|
||||||
|
|
||||||
inline unsigned int GetFlags() { return m_flags; }
|
inline unsigned int GetFlags() { return m_flags; }
|
||||||
|
inline BOOL GetHardwareMode() { return ((int) m_flags << 31) >> 31; }
|
||||||
inline D3DDEVICEDESC& GetDesc() { return m_desc; }
|
inline D3DDEVICEDESC& GetDesc() { return m_desc; }
|
||||||
|
|
||||||
friend class MxDirect3D;
|
friend class MxDirect3D;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user