Previous 15994 Revisions Next

r14216 Thursday 26th January, 2012 at 21:59:14 UTC by Angelo Salese
Fixed silly performance hit in unchained mode noticed by OG
[src/emu/video]pc_vga.c

src/emu/video/pc_vga.c
r14215r14216
2222    - fix video update.
2323   - rewrite video drawing functions (they are horrible)
2424   - add VESA etc.
25    - can't find info regarding cursor speed in text mode, I think it toggles
26      every 32 frames?
2725    - (and many more ...)
2826
2927   per-game issues:
r14215r14216
225223   pen_t pen;
226224
227225   if(vga.crtc.cursor_enable)
228      vga.cursor.visible = machine.primary_screen->frame_number() & 0x20;
226      vga.cursor.visible = machine.primary_screen->frame_number() & 0x10;
229227   else
230228      vga.cursor.visible = 0;
231229
r14215r14216
333331   UINT16 mask_comp;
334332   int height = vga.crtc.maximum_scan_line * (vga.crtc.scan_doubling + 1);
335333   int yi;
336   int xi,xi_h;
334   int xi;
337335
338336   /* line compare is screen sensitive */
339337   mask_comp = 0x0ff | (LINES & 0x300);
r14215r14216
358356
359357               for(xi=0;xi<8;xi++)
360358               {
361                  for(xi_h=0;xi_h<8;xi_h++)
362                  {
363                     if(!machine.primary_screen->visible_area().contains(c+xi*8+xi_h, line + yi))
364                        continue;
365                     bitmapline[c+xi*8+xi_h] = machine.pens[vga.memory[pos+((xi_h >> 1)*0x20000)]];
366                  }
359                  if(!machine.primary_screen->visible_area().contains(c+xi, line + yi))
360                     continue;
361                  bitmapline[c+xi] = machine.pens[vga.memory[pos+((xi >> 1)*0x20000)]];
367362               }
368363            }
369364         }
r14215r14216
388383
389384               for(xi=0;xi<0x10;xi++)
390385               {
391                  xi_h = (xi & 0xe) >> 1;
392386                  if(!machine.primary_screen->visible_area().contains(c+xi, line + yi))
393387                     continue;
394                  bitmapline[c+xi] = machine.pens[vga.memory[pos+xi_h]];
388                  bitmapline[c+xi] = machine.pens[vga.memory[pos+(xi >> 1)]];
395389               }
396390            }
397391         }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team