This commit is contained in:
krystalgamer 2024-09-18 19:55:06 +02:00
parent fae1b30edd
commit c6961bf942
2 changed files with 7 additions and 1 deletions

4
db.cpp
View File

@ -30,6 +30,7 @@ void Db_CreateOTsAndPolyBuffers(void)
}
// @Ok
// @Matching
INLINE void Db_DefaultScreenOffsets(void)
{
DoubleBuffer[0].field_64 = 0;
@ -104,6 +105,7 @@ void Db_Init(void)
PutDispEnv();
PutDrawEnv();
DrawOTag();
}
// @SMALLTODO
@ -116,6 +118,8 @@ void validate_SDoubleBuffer(void)
{
VALIDATE_SIZE(SDoubleBuffer, 0x7C);
VALIDATE(SDoubleBuffer, field_18, 0x18);
VALIDATE(SDoubleBuffer, field_64, 0x64);
VALIDATE(SDoubleBuffer, field_66, 0x66);

4
db.h
View File

@ -9,7 +9,9 @@ EXPORT extern i32 gDbRelated;
EXPORT extern u8* PolyBufferEnd;
struct SDoubleBuffer
{
u8 pad[0x64];
u8 pad[0x18];
u8 field_18;
u8 padAfter18[0x64-0x18-1];
u16 field_64;
u16 field_66;