diff options
author | strangerke | 2011-02-26 14:06:30 +0100 |
---|---|---|
committer | strangerke | 2011-02-26 14:06:30 +0100 |
commit | 756a343cb85760093d1906cc91644e4d10522382 (patch) | |
tree | 478a07975817caecbb0bc2d233ed5b0b0c7ee86b /engines/hugo/display.h | |
parent | bd191e178733dbf49b5b9b8394b8f0554fc6127b (diff) | |
download | scummvm-rg350-756a343cb85760093d1906cc91644e4d10522382.tar.gz scummvm-rg350-756a343cb85760093d1906cc91644e4d10522382.tar.bz2 scummvm-rg350-756a343cb85760093d1906cc91644e4d10522382.zip |
HUGO: Fix graphic glitches in DOS versions
Diffstat (limited to 'engines/hugo/display.h')
-rw-r--r-- | engines/hugo/display.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/engines/hugo/display.h b/engines/hugo/display.h index f234f76019..91e1752df0 100644 --- a/engines/hugo/display.h +++ b/engines/hugo/display.h @@ -101,10 +101,6 @@ protected: static const byte stdMouseCursorHeight = 20; static const byte stdMouseCursorWidth = 12; - inline bool isInX(const int16 x, const rect_t *rect) const; - inline bool isInY(const int16 y, const rect_t *rect) const; - inline bool isOverlapping(const rect_t *rectA, const rect_t *rectB) const; - bool fontLoadedFl[kNumFonts]; // Fonts used in dib (non-GDI) @@ -115,6 +111,14 @@ protected: byte *_mainPalette; int16 _arrayFontSize[kNumFonts]; + viewdib_t _frontBuffer; + + inline bool isInX(const int16 x, const rect_t *rect) const; + inline bool isInY(const int16 y, const rect_t *rect) const; + inline bool isOverlapping(const rect_t *rectA, const rect_t *rectB) const; + + virtual overlayState_t findOvl(seq_t *seq_p, image_pt dst_p, uint16 y) = 0; + private: byte *_curPalette; byte _iconImage[kInvDx * kInvDy]; @@ -125,9 +129,6 @@ private: int16 mergeLists(rect_t *list, rect_t *blist, const int16 len, int16 blen); int16 center(const char *s) const; - overlayState_t findOvl(seq_t *seq_p, image_pt dst_p, uint16 y); - - viewdib_t _frontBuffer; viewdib_t _backBuffer; viewdib_t _GUIBuffer; // User interface images viewdib_t _backBufferBackup; // Backup _backBuffer during inventory @@ -151,6 +152,8 @@ public: void loadFont(int16 fontId); void loadFontArr(Common::ReadStream &in); +protected: + overlayState_t findOvl(seq_t *seq_p, image_pt dst_p, uint16 y); }; class Screen_v1w : public Screen { @@ -160,6 +163,8 @@ public: void loadFont(int16 fontId); void loadFontArr(Common::ReadStream &in); +protected: + overlayState_t findOvl(seq_t *seq_p, image_pt dst_p, uint16 y); }; } // End of namespace Hugo |