diff options
author | 2008-01-19 15:02:18 +0000 | |
---|---|---|
committer | 2008-01-19 15:02:18 +0000 | |
commit | e5b2e1f8ee0825a643d50701896dd10801576b1c (patch) | |
tree | f52c388583af7dd30b0039106e1065376e4c0b94 /src/emu/tilemap.c | |
parent | be4bd611f00af72a73e478b1a4f4952ed514ee3e (diff) |
added tilemap_get_scrollx / tilemap_get_scrolly
Diffstat (limited to 'src/emu/tilemap.c')
-rw-r--r-- | src/emu/tilemap.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/emu/tilemap.c b/src/emu/tilemap.c index e20ed7925fc..1278828bcda 100644 --- a/src/emu/tilemap.c +++ b/src/emu/tilemap.c @@ -655,6 +655,34 @@ void tilemap_set_scrolly(tilemap *tmap, int which, int value) } +/*------------------------------------------------- + tilemap_get_scrollx - return the scroll value + for a row unit +-------------------------------------------------*/ + +int tilemap_get_scrollx(tilemap *tmap, int which) +{ + if (which < tmap->scrollrows) + return tmap->rowscroll[which]; + else + return 0; +} + + +/*------------------------------------------------- + tilemap_get_scrolly - return the scroll value + for a column unit +-------------------------------------------------*/ + +int tilemap_get_scrolly(tilemap *tmap, int which) +{ + if (which < tmap->scrollcols) + return tmap->colscroll[which]; + else + return 0; +} + + /*************************************************************************** INTERNAL MAP ACCESS |