summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/tilemap.c
diff options
context:
space:
mode:
author Zsolt Vasvari <zsoltvas@mamedev.org>2008-03-11 08:37:05 +0000
committer Zsolt Vasvari <zsoltvas@mamedev.org>2008-03-11 08:37:05 +0000
commit77a58d253c7802b6210cea49c472ae014807af23 (patch)
tree0bd68096ba1191f5683a86ba5fad9388403e0581 /src/emu/tilemap.c
parentbf88dd74e3f02e2047fa50fdb0692e47a935dffd (diff)
- First batch of machine->screen[] access has been removed
- Added video_screen_auto_bitmap_alloc(screen) -- it is just a shorthand for auto_bitmap_alloc(video_screen_get_width(screen), video_screen_get_height(screen), video_screen_get_format(screen)) which is a common operation - The Dynax/Don Den Lover games now do their updating in VIDEO_UPDATE instead of VIDEO_EOF. This semmed to have fixed the palette problems - Went through some of these drivers and changed Machine to machine
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)
{