aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/gfx.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index 16c5879edf..7a086571c3 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -451,9 +451,7 @@ Tile *Gfx::loadIcon(const char *tileName) {
}
void Gfx::setPixel(int x, int y, uint16 color) {
- uint16 *ptr = (uint16 *)_globalSurface.getBasePtr(0, y);
- ptr += x;
- *ptr = color;
+ *(uint16 *)_globalSurface.getBasePtr(x, y) = color;
}
Tile *Gfx::getTile(int index) {