Previous 15994 Revisions Next

r14215 Thursday 26th January, 2012 at 21:39:59 UTC by Angelo Salese
Used proper frame_number for cursor generation, and slowed it down from 0x10 to 0x20 frames toggling
[src/emu/video]pc_vga.c

src/emu/video/pc_vga.c
r14214r14215
1818
1919    TODO:
2020    - modernize
21    - convert to an ISA device.
2221    - add emulated mc6845 hook-up
2322    - fix video update.
2423   - rewrite video drawing functions (they are horrible)
25   - fix RAM read/writes, CGA and Mono has video bugs due of corrupted vga.memory
26   - fix emulated CGA and Mono modes
2724   - add VESA etc.
25    - can't find info regarding cursor speed in text mode, I think it toggles
26      every 32 frames?
2827    - (and many more ...)
2928
3029   per-game issues:
r14214r14215
139138   } dac;
140139
141140   struct {
142      int time;
143      int visible;
141      UINT8 visible;
144142   } cursor;
145143
146144   /* oak vga */
r14214r14215
226224   int pos, line, column, mask, w, h, addr;
227225   pen_t pen;
228226
229   if (CRTC_CURSOR_MODE!=CRTC_CURSOR_OFF)
230   {
231      if (++vga.cursor.time>=0x10)
232      {
233         vga.cursor.visible^=1;
234         vga.cursor.time=0;
235      }
236   }
227   if(vga.crtc.cursor_enable)
228      vga.cursor.visible = machine.primary_screen->frame_number() & 0x20;
229   else
230      vga.cursor.visible = 0;
237231
238232   for (addr = vga.crtc.start_addr, line = -CRTC_SKEW; line < TEXT_LINES;
239233       line += height, addr += TEXT_LINE_LENGTH)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team