[Scummvm-git-logs] scummvm master -> 28684e3b49b8541289c1af796506a284c8b4cbef
sluicebox
noreply at scummvm.org
Wed Feb 11 21:22:58 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
28684e3b49 GRAPHICS: FONTS: Remove outdated WinFont function
Commit: 28684e3b49b8541289c1af796506a284c8b4cbef
https://github.com/scummvm/scummvm/commit/28684e3b49b8541289c1af796506a284c8b4cbef
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2026-02-11T13:22:10-08:00
Commit Message:
GRAPHICS: FONTS: Remove outdated WinFont function
Changed paths:
graphics/fonts/winfont.cpp
diff --git a/graphics/fonts/winfont.cpp b/graphics/fonts/winfont.cpp
index c042c676114..af42abf8812 100644
--- a/graphics/fonts/winfont.cpp
+++ b/graphics/fonts/winfont.cpp
@@ -53,27 +53,14 @@ void WinFont::close() {
_glyphs = nullptr;
}
-// Reads a null-terminated string
-static Common::String readString(Common::SeekableReadStream &stream) {
- Common::String string;
-
- char c = stream.readByte();
- while (c && stream.pos() < stream.size()) {
- string += c;
- c = stream.readByte();
- }
-
- return string;
-}
-
static WinFontDirEntry readDirEntry(Common::SeekableReadStream &stream) {
WinFontDirEntry entry;
stream.skip(68); // Useless
entry.points = stream.readUint16LE();
stream.skip(43); // Useless (for now, maybe not in the future)
- readString(stream); // Skip Device Name
- entry.faceName = readString(stream);
+ stream.readString(); // Skip Device Name
+ entry.faceName = stream.readString();
return entry;
}
More information about the Scummvm-git-logs
mailing list