From 597eed026611eeaab6d992308677fa59b4f18908 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Sun, 12 Sep 2010 22:59:32 +0000 Subject: HUGO: Use fonts in HUGO.DAT for the DOS version This is only a temporary solution, to be replaced by a proper .FON handling. Hugo 2 and 3 (dos) now start. svn-id: r52697 --- engines/hugo/display.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'engines/hugo/display.h') diff --git a/engines/hugo/display.h b/engines/hugo/display.h index 5062664c18..14c5b0ebc5 100644 --- a/engines/hugo/display.h +++ b/engines/hugo/display.h @@ -49,7 +49,7 @@ public: void displayList(dupdate_t update, ...); void displayRect(int16 x, int16 y, int16 dx, int16 dy); void initDisplay(); - void loadFont(int16 fontId); + virtual void loadFont(int16 fontId); void moveImage(image_pt srcImage, uint16 x1, uint16 y1, uint16 dx, uint16 dy, uint16 width1, image_pt dstImage, uint16 x2, uint16 y2, uint16 width2); void remapPal(uint16 oldIndex, uint16 newIndex); void restorePal(Common::SeekableReadStream *f); @@ -76,7 +76,7 @@ public: return _GUIBuffer; } -private: +protected: HugoEngine &_vm; // Fonts used in dib (non-GDI) @@ -84,6 +84,7 @@ private: byte _fontdata[NUM_FONTS][FONTSIZE]; // Font data byte *_font[NUM_FONTS][FONT_LEN]; // Ptrs to each char +private: viewdib_t _frontBuffer; viewdib_t _backBuffer; viewdib_t _GUIBuffer; // User interface images @@ -98,6 +99,15 @@ private: int16 center(char *s); }; +class Screen_v2 : public Screen { +public: + Screen_v2(HugoEngine &vm); + ~Screen_v2(); + + virtual void loadFont(int16 fontId); +}; + + } // End of namespace Hugo #endif //HUGO_DISPLAY_H -- cgit v1.2.3