src/emu/video/pc_vga.c
| r14214 | r14215 | |
| 18 | 18 | |
| 19 | 19 | TODO: |
| 20 | 20 | - modernize |
| 21 | | - convert to an ISA device. |
| 22 | 21 | - add emulated mc6845 hook-up |
| 23 | 22 | - fix video update. |
| 24 | 23 | - 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 |
| 27 | 24 | - add VESA etc. |
| 25 | - can't find info regarding cursor speed in text mode, I think it toggles |
| 26 | every 32 frames? |
| 28 | 27 | - (and many more ...) |
| 29 | 28 | |
| 30 | 29 | per-game issues: |
| r14214 | r14215 | |
| 139 | 138 | } dac; |
| 140 | 139 | |
| 141 | 140 | struct { |
| 142 | | int time; |
| 143 | | int visible; |
| 141 | UINT8 visible; |
| 144 | 142 | } cursor; |
| 145 | 143 | |
| 146 | 144 | /* oak vga */ |
| r14214 | r14215 | |
| 226 | 224 | int pos, line, column, mask, w, h, addr; |
| 227 | 225 | pen_t pen; |
| 228 | 226 | |
| 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; |
| 237 | 231 | |
| 238 | 232 | for (addr = vga.crtc.start_addr, line = -CRTC_SKEW; line < TEXT_LINES; |
| 239 | 233 | line += height, addr += TEXT_LINE_LENGTH) |