aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
diff options
context:
space:
mode:
authorMax Horn2002-12-12 23:22:48 +0000
committerMax Horn2002-12-12 23:22:48 +0000
commit2af8f203445664819d101a802635b9c37de97af7 (patch)
treebbad1c068edbfcf4f377c72021e2e4dba88e1432 /gui/newgui.cpp
parentf6de146c5ed9bd61956f343e1e68b15f9519c048 (diff)
downloadscummvm-rg350-2af8f203445664819d101a802635b9c37de97af7.tar.gz
scummvm-rg350-2af8f203445664819d101a802635b9c37de97af7.tar.bz2
scummvm-rg350-2af8f203445664819d101a802635b9c37de97af7.zip
added a dummy global options dialog; PopUpWidget tweaks
svn-id: r5919
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r--gui/newgui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index 4060fb0d56..49a1013ea1 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -477,15 +477,15 @@ void NewGui::blitToBuffer(int x, int y, int w, int h, byte *buf, int pitch)
//
// Draw an 8x8 bitmap at location (x,y)
//
-void NewGui::drawBitmap(uint32 bitmap[8], int x, int y, int16 color)
+void NewGui::drawBitmap(uint32 *bitmap, int x, int y, int16 color, int h)
{
int16 *ptr = getBasePtr(x, y);
- for (int y2 = 0; y2 < 8; y2++) {
+ for (y = 0; y < h; y++) {
uint32 mask = 0xF0000000;
- for (int x2 = 0; x2 < 8; x2++) {
- if (bitmap[y2] & mask)
- ptr[x2] = color;
+ for (x = 0; x < 8; x++) {
+ if (bitmap[y] & mask)
+ ptr[x] = color;
mask >>= 4;
}
ptr += _screenPitch;