Clear unknowns in MxVideoParamFlags (#1648)

This commit is contained in:
Fabian Neundorf
2025-07-22 20:58:00 +02:00
committed by GitHub
parent ed33541a2e
commit eae038f6a9
4 changed files with 12 additions and 12 deletions

View File

@@ -592,14 +592,14 @@ void LegoVideoManager::EnableFullScreenMovie(MxBool p_enable, MxBool p_scale)
m_palette = m_videoParam.GetPalette()->Clone();
OverrideSkyColor(FALSE);
m_displaySurface->GetVideoParam().Flags().SetF1bit3(p_scale);
m_displaySurface->GetVideoParam().Flags().SetDoubleScaling(p_scale);
m_render3d = FALSE;
m_fullScreenMovie = TRUE;
}
else {
m_displaySurface->ClearScreen();
m_displaySurface->GetVideoParam().Flags().SetF1bit3(FALSE);
m_displaySurface->GetVideoParam().Flags().SetDoubleScaling(FALSE);
// restore previous pallete
RealizePalette(m_palette);
@@ -624,10 +624,10 @@ void LegoVideoManager::EnableFullScreenMovie(MxBool p_enable, MxBool p_scale)
}
if (p_enable) {
m_displaySurface->GetVideoParam().Flags().SetF1bit3(p_scale);
m_displaySurface->GetVideoParam().Flags().SetDoubleScaling(p_scale);
}
else {
m_displaySurface->GetVideoParam().Flags().SetF1bit3(FALSE);
m_displaySurface->GetVideoParam().Flags().SetDoubleScaling(FALSE);
}
}

View File

@@ -19,7 +19,7 @@ public:
void SetBackBuffers(MxBool p_e) { m_flags1.m_bit2 = p_e; }
// FUNCTION: BETA10 0x100d9250
void SetF1bit3(MxBool p_e) { m_flags1.m_bit3 = p_e; }
void SetDoubleScaling(MxBool p_e) { m_flags1.m_bit3 = p_e; }
// inlined in ISLE
void Set16Bit(MxBool p_e) { m_flags1.m_bit5 = p_e; }
@@ -34,7 +34,7 @@ public:
void SetLacksLightSupport(MxBool p_e) { m_flags2.m_bit0 = p_e; }
// inlined in ISLE
void SetF2bit1(MxBool p_e) { m_flags2.m_bit1 = p_e; }
void SetEnabled(MxBool p_e) { m_flags2.m_bit1 = p_e; }
// FUNCTION: BETA10 0x1009e770
MxBool GetFullScreen() { return m_flags1.m_bit0; }
@@ -46,7 +46,7 @@ public:
MxBool GetBackBuffers() { return m_flags1.m_bit2; }
// FUNCTION: BETA10 0x10142010
MxBool GetF1bit3() { return m_flags1.m_bit3; }
MxBool GetDoubleScaling() { return m_flags1.m_bit3; }
// FUNCTION: BETA10 0x100d8150
MxBool Get16Bit() { return m_flags1.m_bit5; }
@@ -58,7 +58,7 @@ public:
MxBool GetLacksLightSupport() { return m_flags2.m_bit0; }
// FUNCTION: BETA10 0x10142050
MxBool GetF2bit1() { return m_flags2.m_bit1; }
MxBool GetEnabled() { return m_flags2.m_bit1; }
private:
FlagBitfield m_flags1;

View File

@@ -373,7 +373,7 @@ void MxDisplaySurface::VTable0x28(
MxU8* data = p_bitmap->GetStart(p_left, p_top);
if (m_videoParam.Flags().GetF1bit3()) {
if (m_videoParam.Flags().GetDoubleScaling()) {
p_bottom *= 2;
p_right *= 2;
@@ -825,7 +825,7 @@ void MxDisplaySurface::VTable0x34(MxU8* p_pixels, MxS32 p_bpp, MxS32 p_width, Mx
// FUNCTION: LEGO1 0x100bba50
void MxDisplaySurface::Display(MxS32 p_left, MxS32 p_top, MxS32 p_left2, MxS32 p_top2, MxS32 p_width, MxS32 p_height)
{
if (m_videoParam.Flags().GetF2bit1()) {
if (m_videoParam.Flags().GetEnabled()) {
if (m_videoParam.Flags().GetFlipSurfaces()) {
if (g_unk0x1010215c < 2) {
g_unk0x1010215c++;
@@ -1171,7 +1171,7 @@ void MxDisplaySurface::VTable0x24(
MxU8* data = p_bitmap->GetStart(p_left, p_top);
if (m_videoParam.Flags().GetF1bit3()) {
if (m_videoParam.Flags().GetDoubleScaling()) {
p_bottom *= 2;
p_right *= 2;