aboutsummaryrefslogtreecommitdiff
path: root/saga/isomap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/isomap.cpp')
-rw-r--r--saga/isomap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/isomap.cpp b/saga/isomap.cpp
index d23e876400..8fbf46ea56 100644
--- a/saga/isomap.cpp
+++ b/saga/isomap.cpp
@@ -236,7 +236,7 @@ int IsoMap::drawTile(SURFACE *dst_s, uint16 tile_i, int tile_x, int tile_y) {
tile_h = _tile_tbl[tile_i].tile_h;
read_p = tile_p;
- draw_p = dst_s->buf + tile_x + (tile_y * dst_s->buf_pitch);
+ draw_p = (byte *)dst_s->pixels + tile_x + (tile_y * dst_s->pitch);
draw_x = tile_x;
draw_y = tile_y;
@@ -251,7 +251,7 @@ int IsoMap::drawTile(SURFACE *dst_s, uint16 tile_i, int tile_x, int tile_y) {
}
for (row = 0; row < tile_h; row++) {
- draw_p = dst_s->buf + draw_x + ((draw_y + row) * dst_s->buf_pitch);
+ draw_p = (byte *)dst_s->pixels + draw_x + ((draw_y + row) * dst_s->pitch);
w_count = 0;
// temporary y clip