From 0b3d1abe66f547dc2e63a81b5884e502541e808f Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Mon, 19 Jun 2023 18:20:36 +0200 Subject: [PATCH] fix wrong video param flag interfaces (#26) --- LEGO1/mxvideoparamflags.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/LEGO1/mxvideoparamflags.h b/LEGO1/mxvideoparamflags.h index 50c9a1c9..ef1b971d 100644 --- a/LEGO1/mxvideoparamflags.h +++ b/LEGO1/mxvideoparamflags.h @@ -1,7 +1,7 @@ #ifndef MXVIDEOPARAMFLAGS_H #define MXVIDEOPARAMFLAGS_H -#include "mxbool.h" +#include "legoinc.h" class MxVideoParamFlags { @@ -24,22 +24,22 @@ class MxVideoParamFlags __declspec(dllexport) MxVideoParamFlags(); - inline void EnableFullScreen(MxBool e) + inline void EnableFullScreen(BOOL e) { m_flags1 = (m_flags1 ^ (e << 0)) & FULL_SCREEN ^ m_flags1; } - inline void EnableFlipSurfaces(MxBool e) + inline void EnableFlipSurfaces(BOOL e) { m_flags1 = (m_flags1 ^ (e << 1)) & FLIP_SURFACES ^ m_flags1; } - inline void EnableBackBuffers(MxBool e) + inline void EnableBackBuffers(BOOL e) { m_flags1 = (m_flags1 ^ ((!e) << 2)) & BACK_BUFFERS ^ m_flags1; } - inline void SetUnknown3(MxBool e) + inline void SetUnknown3(BOOL e) { m_flags1 = (m_flags1 ^ (e << 7)) & UNKNOWN3 ^ m_flags1; } @@ -59,17 +59,17 @@ class MxVideoParamFlags m_flags1 = ((e << 5) ^ m_flags1) & ENABLE_16BIT ^ m_flags1; } - inline void EnableWideViewAngle(MxBool e) + inline void EnableWideViewAngle(BOOL e) { m_flags1 = (m_flags1 ^ (e << 6)) & WIDE_VIEW_ANGLE ^ m_flags1; } - inline void EnableUnknown1(MxBool e) + inline void EnableUnknown1(BOOL e) { m_flags2 = (m_flags2 ^ ((!e) << 0)) & UNKNOWN1 ^ m_flags2; } - inline void EnableUnknown2(MxBool e) + inline void EnableUnknown2(BOOL e) { m_flags2 = (m_flags2 ^ (e << 1)) & UNKNOWN2 ^ m_flags2; }