src/emu/video/pc_vga.c
| r14215 | r14216 | |
| 22 | 22 | - fix video update. |
| 23 | 23 | - rewrite video drawing functions (they are horrible) |
| 24 | 24 | - add VESA etc. |
| 25 | | - can't find info regarding cursor speed in text mode, I think it toggles |
| 26 | | every 32 frames? |
| 27 | 25 | - (and many more ...) |
| 28 | 26 | |
| 29 | 27 | per-game issues: |
| r14215 | r14216 | |
| 225 | 223 | pen_t pen; |
| 226 | 224 | |
| 227 | 225 | 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; |
| 229 | 227 | else |
| 230 | 228 | vga.cursor.visible = 0; |
| 231 | 229 | |
| r14215 | r14216 | |
| 333 | 331 | UINT16 mask_comp; |
| 334 | 332 | int height = vga.crtc.maximum_scan_line * (vga.crtc.scan_doubling + 1); |
| 335 | 333 | int yi; |
| 336 | | int xi,xi_h; |
| 334 | int xi; |
| 337 | 335 | |
| 338 | 336 | /* line compare is screen sensitive */ |
| 339 | 337 | mask_comp = 0x0ff | (LINES & 0x300); |
| r14215 | r14216 | |
| 358 | 356 | |
| 359 | 357 | for(xi=0;xi<8;xi++) |
| 360 | 358 | { |
| 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)]]; |
| 367 | 362 | } |
| 368 | 363 | } |
| 369 | 364 | } |
| r14215 | r14216 | |
| 388 | 383 | |
| 389 | 384 | for(xi=0;xi<0x10;xi++) |
| 390 | 385 | { |
| 391 | | xi_h = (xi & 0xe) >> 1; |
| 392 | 386 | if(!machine.primary_screen->visible_area().contains(c+xi, line + yi)) |
| 393 | 387 | continue; |
| 394 | | bitmapline[c+xi] = machine.pens[vga.memory[pos+xi_h]]; |
| 388 | bitmapline[c+xi] = machine.pens[vga.memory[pos+(xi >> 1)]]; |
| 395 | 389 | } |
| 396 | 390 | } |
| 397 | 391 | } |