SlicedImage2::screenHeight

This commit is contained in:
krystalgamer 2024-05-24 17:57:36 +02:00
parent dad02526c9
commit 06c14a1af1
2 changed files with 14 additions and 1 deletions

View File

@ -15,9 +15,16 @@ Image::Image(void)
this->field_C = 4096;
}
// @Ok
int SlicedImage2::screenHeight(void)
{
return (this->field_C * this->field_16) >> 12;
}
void validate_SlicedImage(void)
{
VALIDATE_SIZE(SlicedImage2, 0x20);
VALIDATE(SlicedImage2, field_16, 0x16);
}
void validate_Image(void)

View File

@ -24,7 +24,13 @@ class Image : public CClass
class SlicedImage2 : public Image
{
public:
unsigned char pad[0x10];
EXPORT int screenHeight(void);
unsigned char padTop[0x6];
__int16 field_16;
unsigned char padBottom[0x20-0x16-4];
};
EXPORT void validate_Image(void);