From 0e018d4a3cb6f981994434b831be1252f0c8c3e0 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 26 Nov 2018 00:26:45 +0100 Subject: [PATCH] Load_SCR() hexdump the non pixel bytes of SCR files --- src/miscfileformats.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/miscfileformats.c b/src/miscfileformats.c index 972d55ba..4906f92b 100644 --- a/src/miscfileformats.c +++ b/src/miscfileformats.c @@ -4101,6 +4101,15 @@ void Load_SCR(T_IO_Context * context) ///@todo guess the picture size, or ask the user GFX2_Log(GFX2_DEBUG, ".SCR file. Data length %d\n", i); // i <= 16384 && i >= 16336 => Standard resolution + if (i <= 16384 && i >= 16336) + { + int j; + // Standard resolution files have the 200 lines stored in block + // of 25 lines of 80 bytes = 2000 bytes every 2048 bytes. + // so there are 48 bytes unused every 2048 bytes... + for (j = 0; j < i; j += 2048) + GFX2_LogHexDump(GFX2_DEBUG, "SCR ", pixel_data, j+2000, 48); + } } }