diff options
author | Gregory Montoir | 2007-01-27 02:26:37 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-01-27 02:26:37 +0000 |
commit | 2b61c0d6c1efba14b23655905751981e9b19e365 (patch) | |
tree | c3964a11338fc21e7e9542ced5b860fa167c3daf /engines/scumm/nut_renderer.h | |
parent | 843b30403163b67ec277f086f3ead587bd50e266 (diff) | |
download | scummvm-rg350-2b61c0d6c1efba14b23655905751981e9b19e365.tar.gz scummvm-rg350-2b61c0d6c1efba14b23655905751981e9b19e365.tar.bz2 scummvm-rg350-2b61c0d6c1efba14b23655905751981e9b19e365.zip |
cleanup (made NutRenderer::loadFont protected, added call during initialisation of the renderer object)
svn-id: r25223
Diffstat (limited to 'engines/scumm/nut_renderer.h')
-rw-r--r-- | engines/scumm/nut_renderer.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/scumm/nut_renderer.h b/engines/scumm/nut_renderer.h index c3bc68477a..26a3f0a302 100644 --- a/engines/scumm/nut_renderer.h +++ b/engines/scumm/nut_renderer.h @@ -32,7 +32,6 @@ class ScummEngine; class NutRenderer { protected: ScummEngine *_vm; - bool _loaded; bool _bitmapFont; int _numChars; byte *_decodedData; @@ -42,19 +41,19 @@ protected: byte *src; } _chars[256]; - static void codec1(bool bitmap, byte *dst, const byte *src, int width, int height, int pitch); - static void codec21(bool bitmap, byte *dst, const byte *src, int width, int height, int pitch); + void codec1(byte *dst, const byte *src, int width, int height, int pitch); + void codec21(byte *dst, const byte *src, int width, int height, int pitch); void drawChar(const Graphics::Surface &s, byte c, int x, int y, byte color); void draw2byte(const Graphics::Surface &s, int c, int x, int y, byte color); + void loadFont(const char *filename); + public: - NutRenderer(ScummEngine *vm); + NutRenderer(ScummEngine *vm, const char *filename, bool bitmap); virtual ~NutRenderer(); int getNumChars() const { return _numChars; } - bool loadFont(const char *filename, bool bitmap); - void drawFrame(byte *dst, int c, int x, int y); void drawShadowChar(const Graphics::Surface &s, int c, int x, int y, byte color, bool showShadow); |