summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Wilbert Pol <wilbert@jdg.info>2013-12-21 22:39:17 +0000
committer Wilbert Pol <wilbert@jdg.info>2013-12-21 22:39:17 +0000
commitccc5041310b9b589da4abd4e14ef366d630417eb (patch)
tree8e6ddb6928350fda2c0f1dc33f8af195a48e672d
parentda478ac3c384d998b6ecfe66d0fe5acf57e1d2ba (diff)
v99x8.c: Fixed crash in debug builds, (nw)
-rw-r--r--src/emu/video/v9938.c5
-rw-r--r--src/emu/video/v9938.h2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/emu/video/v9938.c b/src/emu/video/v9938.c
index a2833241d71..0ae5e770375 100644
--- a/src/emu/video/v9938.c
+++ b/src/emu/video/v9938.c
@@ -262,7 +262,7 @@ to emulate this. Also it keeps the palette a reasonable size. :)
*/
-UINT16 *v99x8_device::s_pal_indYJK;
+UINT16 v99x8_device::s_pal_indYJK[0x20000];
PALETTE_INIT_MEMBER(v9958_device, v9958)
{
@@ -275,9 +275,6 @@ PALETTE_INIT_MEMBER(v9958_device, v9958)
if(machine().total_colors() != 19780)
fatalerror("V9958: not enough palette, must be 19780");
- if (v99x8_device::s_pal_indYJK == NULL)
- v99x8_device::s_pal_indYJK = auto_alloc_array(machine(),UINT16, 0x20000);
-
// set up YJK table
LOG(("Building YJK table for V9958 screens, may take a while ... \n"));
i = 0;
diff --git a/src/emu/video/v9938.h b/src/emu/video/v9938.h
index 11bb9eebebf..e3cd70443e8 100644
--- a/src/emu/video/v9938.h
+++ b/src/emu/video/v9938.h
@@ -238,7 +238,7 @@ private:
static const v99x8_mode s_modes[];
protected:
- static UINT16 *s_pal_indYJK;
+ static UINT16 s_pal_indYJK[0x20000];
};