[Scummvm-git-logs] scummvm master -> 74d94f14f19163238331123163dad1b2989d9492
sluicebox
noreply at scummvm.org
Tue Nov 22 08:31:25 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
74d94f14f1 GRAPHICS: Fix WinFontDirEntry parsing regression
Commit: 74d94f14f19163238331123163dad1b2989d9492
https://github.com/scummvm/scummvm/commit/74d94f14f19163238331123163dad1b2989d9492
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2022-11-22T00:30:36-08:00
Commit Message:
GRAPHICS: Fix WinFontDirEntry parsing regression
Fixes HUGO1 crash on startup
Incorrect offset introduced in 8cb2e1bb077c25fbba6bbde9854877c1b5576776
https://learn.microsoft.com/en-us/windows/win32/menurc/fontdirentry
Changed paths:
graphics/fonts/winfont.cpp
diff --git a/graphics/fonts/winfont.cpp b/graphics/fonts/winfont.cpp
index 2bd5bc1d620..d8ab0074948 100644
--- a/graphics/fonts/winfont.cpp
+++ b/graphics/fonts/winfont.cpp
@@ -68,7 +68,7 @@ static WinFontDirEntry readDirEntry(Common::SeekableReadStream &stream) {
stream.skip(68); // Useless
entry.points = stream.readUint16LE();
- stream.skip(38); // Useless (for now, maybe not in the future)
+ stream.skip(43); // Useless (for now, maybe not in the future)
readString(stream); // Skip Device Name
entry.faceName = readString(stream);
More information about the Scummvm-git-logs
mailing list