Previous 199869 Revisions Next

r26258 Monday 18th November, 2013 at 13:34:52 UTC by Angelo Salese
Typo
[src/emu/video]mb_vcu.c
[src/osd/sdl]SDLMain_tmpl.m

trunk/src/osd/sdl/SDLMain_tmpl.m
r26257r26258
1212#import <sys/param.h> /* for MAXPATHLEN */
1313#import <unistd.h>
1414
15/* For some reaon, Apple removed setAppleMenu from the headers in 10.4,
15/* For some reason, Apple removed setAppleMenu from the headers in 10.4,
1616 but the method still is there and works. To avoid warnings, we declare
1717 it ourselves here. */
1818@interface NSApplication(SDL_Missing_Methods)
trunk/src/emu/video/mb_vcu.c
r26257r26258
278278   UINT8 pen = 0;
279279   UINT8 cur_layer;
280280
281   cur_layer = 0;//(m_mode & 0x3) << 16;
281   cur_layer = (m_mode & 0x3);
282282
283283   switch(m_mode >> 2)
284284   {
r26257r26258
295295                  dot = m_cpu->space(AS_PROGRAM).read_byte(((offset + (bits >> 3)) & 0x1fff) + 0x4000) >> (4-(bits & 7));
296296                  dot&= 0xf;
297297
298                  //if(dot != 0xf)
298                  //if(dot != 0xf || m_mode & 2)
299299                     write_byte(dstx|dsty<<8|cur_layer<<16|m_vbank<<18, dot);
300300               }
301301               bits += 4;
r26257r26258
317317                  dot&= 1;
318318
319319                  pen = dot ? (m_color1 >> 4) : (m_color1 & 0xf);
320                  //if(pen != 0xf)
321                     write_byte(dstx|dsty<<8|cur_layer|m_vbank<<18, pen);
320                  //if(pen != 0xf || m_mode & 2)
321                     write_byte(dstx|dsty<<8|cur_layer<<16|m_vbank<<18, pen);
322322               }
323323               bits++;
324324            }
r26257r26258
353353                  }
354354
355355                  //if(pen != 0xf)
356                     write_byte(dstx|dsty<<8|cur_layer|m_vbank<<18, pen);
357
356                     write_byte(dstx|dsty<<8|cur_layer<<16|m_vbank<<18, pen);
358357               }
359358
360359               bits+=2;
r26257r26258
494493{
495494   int x,y;
496495   UINT8 dot;
496   static UINT8 test;
497497
498   if(machine().input().code_pressed_once(KEYCODE_Z))
499      test++;
500
501   if(machine().input().code_pressed_once(KEYCODE_X))
502      test--;
503
504   popmessage("%02x",test);
505
498506   bitmap.fill(0x100,cliprect);
499507
500508   for(y=0;y<256;y++)
501509   {
502510      for(x=0;x<256;x++)
503511      {
504         dot = read_byte((x >> 0)|(y<<8)|0<<16|(m_vbank ^ 1)<<18);
512         dot = read_byte((x >> 0)|(y<<8)|test<<16|(m_vbank ^ 1)<<18);
505513         //if(dot != 0xf)
506514         {
507515            dot|= m_vregs[1] << 4;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team