aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-08-05 11:48:42 +0530
committerEugene Sandulenko2019-09-03 17:17:32 +0200
commit1d1ace6ab51656c2d8b9cddf1a99f180ce6fd999 (patch)
treed15bbbeff44c215f1a15b6b249360bc8cf86aed5
parent16fd2269027c5ccaa398baef8f1c841c2b2f2940 (diff)
downloadscummvm-rg350-1d1ace6ab51656c2d8b9cddf1a99f180ce6fd999.tar.gz
scummvm-rg350-1d1ace6ab51656c2d8b9cddf1a99f180ce6fd999.tar.bz2
scummvm-rg350-1d1ace6ab51656c2d8b9cddf1a99f180ce6fd999.zip
HDB: Simplify setPixel()
-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) {