aboutsummaryrefslogtreecommitdiff
path: root/scumm/nut_renderer.h
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-09-06 16:42:28 +0000
committerPaweł Kołodziejski2003-09-06 16:42:28 +0000
commitbbd23e60ceae570e8bd0f220257a21b01f679355 (patch)
treec33eac2f5b4b5b5804724a5373bb0bd56e640345 /scumm/nut_renderer.h
parentf633ac23688ed31433b048dfc1f9afc69da9d773 (diff)
downloadscummvm-rg350-bbd23e60ceae570e8bd0f220257a21b01f679355.tar.gz
scummvm-rg350-bbd23e60ceae570e8bd0f220257a21b01f679355.tar.bz2
scummvm-rg350-bbd23e60ceae570e8bd0f220257a21b01f679355.zip
added support for codec1 in nut renderer
svn-id: r10046
Diffstat (limited to 'scumm/nut_renderer.h')
-rw-r--r--scumm/nut_renderer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/scumm/nut_renderer.h b/scumm/nut_renderer.h
index 1524fbc86f..175f516ed9 100644
--- a/scumm/nut_renderer.h
+++ b/scumm/nut_renderer.h
@@ -32,6 +32,8 @@ protected:
bool _loaded;
int _nbChars;
struct {
+ int xoffs;
+ int yoffs;
int width;
int height;
byte *src;
@@ -39,15 +41,17 @@ protected:
void decodeCodec44(byte *dst, const byte *src, uint32 length);
- void draw2byte(byte *dst, byte *mask, int c, int x, int y, byte color);
void drawChar(byte *dst, byte *mask, byte c, int x, int y, byte color);
+ void draw2byte(byte *dst, byte *mask, int c, int x, int y, byte color);
public:
NutRenderer(Scumm *vm);
virtual ~NutRenderer();
+ int getNbChars() { return _nbChars; }
bool loadFont(const char *filename, const char *dir);
+ void drawFrame(byte *dst, int c, int x, int y);
void drawShadowChar(int c, int x, int y, byte color, bool useMask);
int getCharWidth(byte c);