From 25d5220eebdda03187ecf01a4e262e772c45164b Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Tue, 20 Jun 2023 11:11:31 +0200 Subject: [PATCH] Isle::Isle 100% accuracy --- ISLE/isle.cpp | 8 +------- LEGO1/mxrect32.h | 8 ++++++++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ISLE/isle.cpp b/ISLE/isle.cpp index 5e9e1ec4..34d8a6ba 100644 --- a/ISLE/isle.cpp +++ b/ISLE/isle.cpp @@ -37,13 +37,7 @@ Isle::Isle() m_frameDelta = 10; m_windowActive = 1; - MxRect32 rect; - rect.m_left = 0; - rect.m_top = 0; - rect.m_right = 639; - rect.m_bottom = 479; - - m_videoParam = MxVideoParam(rect, NULL, 1, MxVideoParamFlags()); + m_videoParam = MxVideoParam(MxRect32(0, 0, 639, 479), NULL, 1, MxVideoParamFlags()); m_videoParam.flags().Enable16Bit(MxDirectDraw::GetPrimaryBitDepth() == 16); m_windowHandle = NULL; diff --git a/LEGO1/mxrect32.h b/LEGO1/mxrect32.h index 764117ec..092396f5 100644 --- a/LEGO1/mxrect32.h +++ b/LEGO1/mxrect32.h @@ -4,6 +4,14 @@ class MxRect32 { public: + MxRect32(int p_left, int p_top, int p_right, int p_bottom) + { + this->m_left = p_left; + this->m_top = p_top; + this->m_right = p_right; + this->m_bottom = p_bottom; + } + int m_left; int m_top; int m_right;