This commit is contained in:
Christian Semmler 2024-12-23 08:10:28 -07:00
parent 084de867b3
commit c2a2f1a56c
3 changed files with 5 additions and 4 deletions

View File

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

View File

@ -491,7 +491,7 @@ void MxDisplaySurface::VTable0x30(
MxS32 p_bottom,
MxS32 p_width,
MxS32 p_height,
MxBool p_und
MxBool p_RLE
)
{
if (!GetRectIntersection(
@ -527,7 +527,7 @@ void MxDisplaySurface::VTable0x30(
switch (m_surfaceDesc.ddpfPixelFormat.dwRGBBitCount) {
case 8: {
MxU8* surface = (MxU8*) ddsd.lpSurface + p_right + (p_bottom * ddsd.lPitch);
if (p_und) {
if (p_RLE) {
MxS32 size = p_bitmap->GetBmiHeader()->biSizeImage;
DrawTransparentRLE(data, surface, size, p_width, p_height, ddsd.lPitch, 8);
}
@ -553,7 +553,7 @@ void MxDisplaySurface::VTable0x30(
}
case 16: {
MxU8* surface = (MxU8*) ddsd.lpSurface + (2 * p_right) + (p_bottom * ddsd.lPitch);
if (p_und) {
if (p_RLE) {
MxS32 size = p_bitmap->GetBmiHeader()->biSizeImage;
DrawTransparentRLE(data, surface, size, p_width, p_height, ddsd.lPitch, 16);
}

View File

@ -13,6 +13,7 @@ m_HELDesc: 'Allow this variable name'
p_HWDesc: 'Allow this variable name'
p_HELDesc: 'Allow this variable name'
e_RAMStream: 'Allow this enum constant'
p_RLE: 'Allow this parameter name'
p_milliseconds: 'Probably a bug with function call'
m_increaseAmount: "Can't currently detect member in union"
m_increaseFactor: "Can't currently detect member in union"