src/mess/video/vic6567.c
| r3180 | r3181 | |
| 1130 | 1130 | /* top part of display not rastered */ |
| 1131 | 1131 | first -= VIC2_YPOS - YPOS; |
| 1132 | 1132 | last -= VIC2_YPOS - YPOS; |
| 1133 | /* |
| 1133 | 1134 | if ((first >= last) || (last <= 0)) |
| 1134 | 1135 | { |
| 1135 | 1136 | for (i = 0; i < 8; i++) |
| r3180 | r3181 | |
| 1138 | 1139 | } |
| 1139 | 1140 | if (first < 0) |
| 1140 | 1141 | first = 0; |
| 1141 | | |
| 1142 | */ |
| 1142 | 1143 | if (!SCREENON) |
| 1143 | 1144 | { |
| 1144 | 1145 | for (line = first; (line < last) && (line < vic2.bitmap->height); line++) |
| r3180 | r3181 | |
| 1363 | 1364 | } |
| 1364 | 1365 | // printf("%08x ",(int)activecpu_gettotalcycles()); |
| 1365 | 1366 | if (vic2.on) |
| 1366 | | if ((vic2.rasterline > 0x25) && (vic2.rasterline < 0x120))vic2_drawlines (vic2.rasterline-1, vic2.rasterline); |
| 1367 | if ((vic2.rasterline >= VIC2_FIRSTRASTERLINE) && (vic2.rasterline < (VIC2_FIRSTRASTERLINE + VIC2_VISIBLELINES))) vic2_drawlines (vic2.rasterline-1, vic2.rasterline); |
| 1367 | 1368 | } |
| 1368 | 1369 | |
| 1369 | 1370 | VIDEO_UPDATE( vic2 ) |
src/mess/video/vic6567.h
| r3180 | r3181 | |
| 50 | 50 | #define VIC6567_STARTVISIBLELINES ((VIC6567_LINES - VIC6567_VISIBLELINES)/2) |
| 51 | 51 | #define VIC6569_STARTVISIBLELINES ((VIC6569_LINES - VIC6569_VISIBLELINES)/2) |
| 52 | 52 | #define VIC2_STARTVISIBLELINES ((VIC2_LINES - VIC2_VISIBLELINES)/2) |
| 53 | #define VIC6567_FIRSTRASTERLINE 34 |
| 54 | #define VIC6569_FIRSTRASTERLINE 9 |
| 55 | #define VIC2_FIRSTRASTERLINE (vic2.pal?VIC6569_FIRSTRASTERLINE:VIC6567_FIRSTRASTERLINE) |
| 53 | 56 | |
| 54 | 57 | #define VIC6567_COLUMNS 512 |
| 55 | 58 | #define VIC6569_COLUMNS 504 |