summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/tilemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/tilemap.c')
-rw-r--r--src/emu/tilemap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/tilemap.c b/src/emu/tilemap.c
index 67d33907f0e..809b4fec858 100644
--- a/src/emu/tilemap.c
+++ b/src/emu/tilemap.c
@@ -263,8 +263,8 @@ INLINE tilemap *indexed_tilemap(int index)
void tilemap_init(running_machine *machine)
{
- screen_width = machine->screen[0].width;
- screen_height = machine->screen[0].height;
+ screen_width = video_screen_get_width(machine->primary_screen);
+ screen_height = video_screen_get_height(machine->primary_screen);
if (screen_width != 0 && screen_height != 0)
{