aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/display.h
diff options
context:
space:
mode:
authorArnaud Boutonné2010-09-12 22:59:32 +0000
committerArnaud Boutonné2010-09-12 22:59:32 +0000
commit597eed026611eeaab6d992308677fa59b4f18908 (patch)
tree6a983b369c9577b10694ad32f9a79349828f356e /engines/hugo/display.h
parentf656ed2974175a45a1557300d8db91c1fddbba18 (diff)
downloadscummvm-rg350-597eed026611eeaab6d992308677fa59b4f18908.tar.gz
scummvm-rg350-597eed026611eeaab6d992308677fa59b4f18908.tar.bz2
scummvm-rg350-597eed026611eeaab6d992308677fa59b4f18908.zip
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
Diffstat (limited to 'engines/hugo/display.h')
-rw-r--r--engines/hugo/display.h14
1 files changed, 12 insertions, 2 deletions
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