diff options
author | Strangerke | 2013-06-25 20:40:06 +0200 |
---|---|---|
committer | Strangerke | 2013-06-25 20:40:06 +0200 |
commit | 785db3b190f5449c83fa3c235d65835e49307778 (patch) | |
tree | f20371a5104642fc2f9c6e2b4490c19c7e37ffde /engines/mortevielle/graphics.h | |
parent | 16c814ee6ee68b4359a1924c3086a3efb492b130 (diff) | |
download | scummvm-rg350-785db3b190f5449c83fa3c235d65835e49307778.tar.gz scummvm-rg350-785db3b190f5449c83fa3c235d65835e49307778.tar.bz2 scummvm-rg350-785db3b190f5449c83fa3c235d65835e49307778.zip |
MORTEVIELLE: Replace g_vm in ScreenSurface
Diffstat (limited to 'engines/mortevielle/graphics.h')
-rw-r--r-- | engines/mortevielle/graphics.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/mortevielle/graphics.h b/engines/mortevielle/graphics.h index 7bf39c3662..026950e127 100644 --- a/engines/mortevielle/graphics.h +++ b/engines/mortevielle/graphics.h @@ -34,10 +34,13 @@ #include "graphics/surface.h" namespace Mortevielle { +class MortevielleEngine; class PaletteManager { -public: +private: void setPalette(const int *palette, uint idx, uint size); + +public: void setDefaultPalette(); }; @@ -74,7 +77,7 @@ public: Common::Point _offset; // Transparency palette index int _transparency; -public: + ~GfxSurface(); void decode(const byte *pSrc); @@ -82,11 +85,13 @@ public: class ScreenSurface: public Graphics::Surface { private: + MortevielleEngine *_vm; + Common::List<Common::Rect> _dirtyRects; byte _fontData[FONT_NUM_CHARS * FONT_HEIGHT]; + public: Common::Point _textPos; // Original called xwhere/ywhere -public: void readFontData(Common::File &f, int dataSize); Graphics::Surface lockArea(const Common::Rect &bounds); void updateScreen(); @@ -101,6 +106,7 @@ public: int getStringWidth(const Common::String &s); void drawLine(int x, int y, int xx, int yy, int coul); void drawRectangle(int x, int y, int dx, int dy); + void setParent(MortevielleEngine *vm); // TODO: Refactor code to remove this method, for increased performance void setPixel(const Common::Point &pt, int palIndex); |