Previous 15994 Revisions Next

r14304 Wednesday 1st February, 2012 at 21:52:51 UTC by Angelo Salese
Fixed double scan in text mode
[src/emu/video]pc_vga.c

src/emu/video/pc_vga.c
r14303r14304
225225   UINT8 bits;
226226   UINT32 font_base;
227227   UINT32 *bitmapline;
228   int width=CHAR_WIDTH, height=CRTC_CHAR_HEIGHT;
228   int width=CHAR_WIDTH, height=CRTC_CHAR_HEIGHT * (vga.crtc.scan_doubling + 1);
229229   int pos, line, column, mask, w, h, addr;
230230   UINT8 blink_en,fore_col,back_col;
231231   pen_t pen;
r14303r14304
253253         for (h = MAX(-line, 0); (h < height) && (line+h < MIN(TEXT_LINES, bitmap.height())); h++)
254254         {
255255            bitmapline = &bitmap.pix32(line+h);
256            bits = vga.memory[font_base+(h<<0)];
256            bits = vga.memory[font_base+(h>>(vga.crtc.scan_doubling))];
257257
258258            for (mask=0x80, w=0; (w<width)&&(w<8); w++, mask>>=1)
259259            {
r14303r14304
577577         //proc = vga_vh_text;
578578         //*height = TEXT_LINES;
579579         //*width = TEXT_COLUMNS * CHAR_WIDTH;
580         if(vga.crtc.scan_doubling)
581            popmessage("Text mode with double scan enabled, contact MAMEdev");
582580
583581         return TEXT_MODE;
584582      }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team