summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-10-10 05:25:45 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-10-10 05:25:45 +0000
commitfa433938c0e0bdeee87a9b147f8c7cbb9591de89 (patch)
treeb327f956f617fffeea35dbef80f77a6b81fa7629 /src
parent854005e78aa17587ad0c3387317f8c68aa5cce54 (diff)
02512: dkong: Artwork and gameplay area are getting squished/distorted
02511: dkong: Donkey Kong crashes after quiting
Diffstat (limited to 'src')
-rw-r--r--src/emu/rendlay.c7
-rw-r--r--src/emu/video/resnet.c2
-rw-r--r--src/mame/video/naughtyb.c2
3 files changed, 5 insertions, 6 deletions
diff --git a/src/emu/rendlay.c b/src/emu/rendlay.c
index ebc83d03d11..caa4adac067 100644
--- a/src/emu/rendlay.c
+++ b/src/emu/rendlay.c
@@ -279,6 +279,9 @@ void layout_view_recompute(layout_view *view, int layerconfig)
else
union_render_bounds(&view->scrbounds, &item->rawbounds);
scrfirst = FALSE;
+
+ /* accumulate the screens in use while we're scanning */
+ view->screens |= 1 << item->index;
}
}
}
@@ -328,10 +331,6 @@ void layout_view_recompute(layout_view *view, int layerconfig)
item->bounds.x1 = target_bounds.x0 + (item->rawbounds.x1 - xoffs) * xscale;
item->bounds.y0 = target_bounds.y0 + (item->rawbounds.y0 - yoffs) * yscale;
item->bounds.y1 = target_bounds.y0 + (item->rawbounds.y1 - yoffs) * yscale;
-
- /* accumulate the screens in use while we're scanning */
- if (item->element == NULL)
- view->screens |= 1 << item->index;
}
}
}
diff --git a/src/emu/video/resnet.c b/src/emu/video/resnet.c
index c016a325e2e..387b12d37f7 100644
--- a/src/emu/video/resnet.c
+++ b/src/emu/video/resnet.c
@@ -700,7 +700,7 @@ rgb_t *compute_res_net_all(const UINT8 *prom, const res_net_decode_info *rdi, co
int i,j,k;
rgb_t *rgb;
- rgb = auto_malloc((rdi->end - rdi->start + 1)*sizeof(rgb_t));
+ rgb = malloc_or_die((rdi->end - rdi->start + 1)*sizeof(rgb_t));
for (i=rdi->start; i<=rdi->end; i++)
{
UINT8 t[3] = {0,0,0};
diff --git a/src/mame/video/naughtyb.c b/src/mame/video/naughtyb.c
index 57aa7eef29e..3e5bd41d9f9 100644
--- a/src/mame/video/naughtyb.c
+++ b/src/mame/video/naughtyb.c
@@ -92,9 +92,9 @@ PALETTE_INIT( naughtyb )
int i;
rgb = compute_res_net_all(color_prom, &naughtyb_decode_info, &naughtyb_net_info);
-
for (i = 0; i < 0x100; i++)
palette_set_color(machine, BITSWAP8(i,5,7,6,2,1,0,4,3), rgb[i]);
+ free(rgb);
palette_normalize_range(machine->palette, 0, 255, 0, 255);
}