Previous 15994 Revisions Next

r14128 Sunday 22nd January, 2012 at 23:38:11 UTC by Angelo Salese
Minor update to VGA, print a popmessage if CGA / MONO modes are selected
[src/emu/video]pc_vga.c

src/emu/video/pc_vga.c
r14127r14128
402402   }
403403}
404404
405static void vga_vh_cga(running_machine &machine, bitmap_rgb32 &bitmap, const rectangle &cliprect)
406{
407   popmessage("CGA mode");
408}
409
410static void vga_vh_mono(running_machine &machine, bitmap_rgb32 &bitmap, const rectangle &cliprect)
411{
412   popmessage("Mono mode");
413}
414
415
416
405417static UINT8 pc_vga_choosevideomode(running_machine &machine)
406418{
407419   int i;
r14127r14128
438450
439451      if (vga.svga_intf.choosevideomode)
440452      {
441         return 4;
453         return 6;
442454      }
443455      else if (!GRAPHIC_MODE)
444456      {
r14127r14128
457469         //*width = VGA_COLUMNS * 8;
458470         return 2;
459471      }
472      else if (vga.gc.data[5]&0x20)
473      {
474         return 3;
475      }
476      else if ((vga.gc.data[6]&0x0c) == 0x0c)
477      {
478         return 4;
479      }
460480      else
461481      {
462482         //proc = vga_vh_ega;
463483         //*height = LINES;
464484         //*width = EGA_COLUMNS * 8;
465         return 3;
485         return 5;
466486      }
467487   }
468488
r14127r14128
483503      case 0: bitmap.fill(get_black_pen(screen.machine()), cliprect);break;
484504      case 1: vga_vh_text(screen.machine(), bitmap, cliprect); break;
485505      case 2: vga_vh_vga (screen.machine(), bitmap, cliprect); break;
486      case 3: vga_vh_ega (screen.machine(), bitmap, cliprect); break;
487      case 4: vga.svga_intf.choosevideomode(screen.machine(), bitmap, cliprect, vga.sequencer.data, vga.crtc.data, vga.gc.data, &w, &h); break;
506      case 3: vga_vh_cga (screen.machine(), bitmap, cliprect); break;
507      case 4: vga_vh_mono(screen.machine(), bitmap, cliprect); break;
508      case 5: vga_vh_ega (screen.machine(), bitmap, cliprect); break;
509      case 6: vga.svga_intf.choosevideomode(screen.machine(), bitmap, cliprect, vga.sequencer.data, vga.crtc.data, vga.gc.data, &w, &h); break;
488510   }
489511
490512   return 0;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team