Skip to content

Commit e6f4ae3

Browse files
committed
[HRP] Fixed splash screen display when packed in an uncompressed .dat
1 parent 8691540 commit e6f4ae3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sfall/HRP/SplashScreen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ static void Clear(fo::PALETTE* palette) {
9191
}
9292

9393
static fo::DbFile* __fastcall ReadRIX(fo::DbFile* file, fo::PALETTE* palette) {
94-
fo::func::db_fseek(file, 4, SEEK_SET);
94+
fo::func::db_fseek(file, 0, SEEK_SET); // rewind (for uncompressed .dat)
95+
fo::func::db_fseek(file, 4, SEEK_SET); // "RIX3"
9596
fo::func::db_freadShort(file, &rixWidth);
9697
fo::func::db_freadShort(file, &rixHeight);
9798

0 commit comments

Comments
 (0)