aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts/winfont.h
diff options
context:
space:
mode:
authorCameron Cawley2020-01-02 21:56:51 +0000
committerFilippos Karapetis2020-01-11 17:34:12 +0200
commite49282577fb10e65fd06fcb7808e300cf97b3ca8 (patch)
tree57d31691c648076bf1f6385dbdb909fb310ae02a /graphics/fonts/winfont.h
parentaa9a41545ad331acb37dde0790adfa8298b1f8b5 (diff)
downloadscummvm-rg350-e49282577fb10e65fd06fcb7808e300cf97b3ca8.tar.gz
scummvm-rg350-e49282577fb10e65fd06fcb7808e300cf97b3ca8.tar.bz2
scummvm-rg350-e49282577fb10e65fd06fcb7808e300cf97b3ca8.zip
GRAPHICS: Simplify loading Windows fonts
Diffstat (limited to 'graphics/fonts/winfont.h')
-rw-r--r--graphics/fonts/winfont.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/fonts/winfont.h b/graphics/fonts/winfont.h
index 3354fc2381..f1c661f270 100644
--- a/graphics/fonts/winfont.h
+++ b/graphics/fonts/winfont.h
@@ -28,6 +28,7 @@
namespace Common {
class SeekableReadStream;
+class WinResources;
}
namespace Graphics {
@@ -67,8 +68,7 @@ public:
void drawChar(Surface *dst, uint32 chr, int x, int y, uint32 color) const;
private:
- bool loadFromPE(const Common::String &fileName, const WinFontDirEntry &dirEntry);
- bool loadFromNE(const Common::String &fileName, const WinFontDirEntry &dirEntry);
+ bool loadFromEXE(Common::WinResources *exe, const Common::String &fileName, const WinFontDirEntry &dirEntry);
uint32 getFontIndex(Common::SeekableReadStream &stream, const WinFontDirEntry &dirEntry);
bool loadFromFNT(Common::SeekableReadStream &stream);