This commit is contained in:
Christian Semmler 2024-03-20 16:33:08 -04:00
parent 2c5234eef6
commit 8398a730b5
2 changed files with 4 additions and 5 deletions

View File

@ -63,7 +63,7 @@ class MxDisplaySurface : public MxCore {
MxS32 p_bottom,
MxS32 p_width,
MxS32 p_height,
MxBool p_useOtherFunction
MxBool p_und
); // vtable+0x30
virtual undefined4 VTable0x34(
undefined4,

View File

@ -479,7 +479,7 @@ void MxDisplaySurface::VTable0x30(
MxS32 p_bottom,
MxS32 p_width,
MxS32 p_height,
MxBool p_useOtherFunction
MxBool p_und
)
{
if (GetRectIntersection(
@ -494,7 +494,6 @@ void MxDisplaySurface::VTable0x30(
&p_width,
&p_height
)) {
DDSURFACEDESC ddsd;
memset(&ddsd, 0, sizeof(ddsd));
ddsd.dwSize = sizeof(ddsd);
@ -511,7 +510,7 @@ void MxDisplaySurface::VTable0x30(
switch (m_surfaceDesc.ddpfPixelFormat.dwRGBBitCount) {
case 8: {
MxU8* surface = (MxU8*) ddsd.lpSurface + p_right + (p_bottom * ddsd.lPitch);
if (p_useOtherFunction) {
if (p_und) {
FUN_100bb500(
&data,
&surface,
@ -542,7 +541,7 @@ void MxDisplaySurface::VTable0x30(
}
case 16: {
MxU8* surface = (MxU8*) ddsd.lpSurface + (2 * p_right) + (p_bottom * ddsd.lPitch);
if (p_useOtherFunction) {
if (p_und) {
FUN_100bb500(
&data,
&surface,