diff options
author | Max Horn | 2003-06-04 15:04:00 +0000 |
---|---|---|
committer | Max Horn | 2003-06-04 15:04:00 +0000 |
commit | ac57e79ca27222ffc1868e2515d6a07eff3a87a2 (patch) | |
tree | 5a144f0b69b8ebb364f42f6afc0eb660a7ad84a2 /scumm/smush/smush_font.h | |
parent | 6fd0e4a07f7502cf88e0d65a7030836196c15852 (diff) | |
download | scummvm-rg350-ac57e79ca27222ffc1868e2515d6a07eff3a87a2.tar.gz scummvm-rg350-ac57e79ca27222ffc1868e2515d6a07eff3a87a2.tar.bz2 scummvm-rg350-ac57e79ca27222ffc1868e2515d6a07eff3a87a2.zip |
cleanup
svn-id: r8294
Diffstat (limited to 'scumm/smush/smush_font.h')
-rw-r--r-- | scumm/smush/smush_font.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scumm/smush/smush_font.h b/scumm/smush/smush_font.h index 8e9b06b33d..d30d8c525c 100644 --- a/scumm/smush/smush_font.h +++ b/scumm/smush/smush_font.h @@ -47,22 +47,22 @@ public: protected: int getCharWidth(byte c); - int getStringWidth(char *str); + int getStringWidth(const char *str); int getCharHeight(byte c); - int getStringHeight(char *str); + int getStringHeight(const char *str); int draw2byte(byte *buffer, int dst_width, int x, int y, int idx); int drawChar(byte *buffer, int dst_width, int x, int y, byte chr); - void drawSubstring(char *str, byte *buffer, int dst_width, int x, int y); - void decodeCodec(byte *dst, byte *src, int length); + void drawSubstring(const char *str, byte *buffer, int dst_width, int x, int y); + void decodeCodec(byte *dst, const byte *src, int length); public: bool loadFont(const char *filename, const char *directory); void setColor(byte c) { _color = c; } - void drawStringCentered(char *str, byte *buffer, int dst_width, int dst_height, int y, int xmin, int width, int offset); - void drawStringWrap(char *str, byte *buffer, int dst_width, int dst_height, int x, int y, int width); - void drawStringWrapCentered(char *str, byte *buffer, int dst_width, int dst_height, int x, int y, int width); - void drawStringAbsolute(char *str, byte *buffer, int dst_width, int x, int y); + void drawStringCentered(const char *str, byte *buffer, int dst_width, int dst_height, int y, int xmin, int width, int offset); + void drawStringWrap(const char *str, byte *buffer, int dst_width, int dst_height, int x, int y, int width); + void drawStringWrapCentered(const char *str, byte *buffer, int dst_width, int dst_height, int x, int y, int width); + void drawStringAbsolute(const char *str, byte *buffer, int dst_width, int x, int y); }; #endif |