Previous 199869 Revisions Next

r26684 Saturday 21st December, 2013 at 22:39:17 UTC by Wilbert Pol
v99x8.c: Fixed crash in debug builds, (nw)
[src/emu/video]v9938.c v9938.h

trunk/src/emu/video/v9938.h
r26683r26684
238238   static const v99x8_mode s_modes[];
239239
240240protected:
241   static UINT16 *s_pal_indYJK;
241   static UINT16 s_pal_indYJK[0x20000];
242242};
243243
244244
trunk/src/emu/video/v9938.c
r26683r26684
262262
263263*/
264264
265UINT16 *v99x8_device::s_pal_indYJK;
265UINT16 v99x8_device::s_pal_indYJK[0x20000];
266266
267267PALETTE_INIT_MEMBER(v9958_device, v9958)
268268{
r26683r26684
275275   if(machine().total_colors() != 19780)
276276      fatalerror("V9958: not enough palette, must be 19780");
277277
278   if (v99x8_device::s_pal_indYJK == NULL)
279      v99x8_device::s_pal_indYJK = auto_alloc_array(machine(),UINT16, 0x20000);
280
281278   // set up YJK table
282279   LOG(("Building YJK table for V9958 screens, may take a while ... \n"));
283280   i = 0;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team