diff options
author | Max Horn | 2002-11-05 21:48:40 +0000 |
---|---|---|
committer | Max Horn | 2002-11-05 21:48:40 +0000 |
commit | 5c0b145315659e911ea9bb4cccce59a32631c4ff (patch) | |
tree | e1d5aa502f0646d0f1ef1e46c44deb79dab9a545 | |
parent | 973032dd90439ec1e48a95163e51a9fdef2faacf (diff) | |
download | scummvm-rg350-5c0b145315659e911ea9bb4cccce59a32631c4ff.tar.gz scummvm-rg350-5c0b145315659e911ea9bb4cccce59a32631c4ff.tar.bz2 scummvm-rg350-5c0b145315659e911ea9bb4cccce59a32631c4ff.zip |
fix for bug #633087 (umlauts in GUI)
svn-id: r5426
-rw-r--r-- | gui/newgui.cpp | 4 | ||||
-rw-r--r-- | gui/newgui.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp index d4edecc5a7..7e98d8d6ed 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -390,7 +390,7 @@ void NewGui::addDirtyRect(int x, int y, int w, int h) _system->copy_rect_overlay(buf, _screenPitch, x, y, w, h); } -void NewGui::drawChar(const char chr, int xx, int yy, int16 color) +void NewGui::drawChar(const byte chr, int xx, int yy, int16 color) { unsigned int buffer = 0, mask = 0, x, y; byte *tmp; @@ -425,7 +425,7 @@ int NewGui::getStringWidth(const String &str) return space; } -int NewGui::getCharWidth(char c) +int NewGui::getCharWidth(byte c) { return guifont[c+6]; } diff --git a/gui/newgui.h b/gui/newgui.h index d1ba430d0d..078d3984e0 100644 --- a/gui/newgui.h +++ b/gui/newgui.h @@ -126,9 +126,9 @@ public: void checkerRect(int x, int y, int w, int h, int16 color); void frameRect(int x, int y, int w, int h, int16 color); void addDirtyRect(int x, int y, int w, int h); - void drawChar(char c, int x, int y, int16 color); + void drawChar(byte c, int x, int y, int16 color); int getStringWidth(const String &str); - int getCharWidth(char c); + int getCharWidth(byte c); void drawString(const String &str, int x, int y, int w, int16 color, int align = kTextAlignLeft); void drawBitmap(uint32 bitmap[8], int x, int y, int16 color); |