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]; };