src/mess/drivers/super80.c
| r2415 | r2416 | |
| 189 | 189 | if (curs_type == 3) for (i = r11; i < r10;i++) mc6845_cursor[i]=0; // now take a bite out of the middle |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | | /* Resize the screen within the limits of the hardware. |
| 193 | | If we are using dynamic screen resizing, expand the image to fill the screen area */ |
| 192 | /* Resize the screen within the limits of the hardware. Expand the image to fill the screen area */ |
| 194 | 193 | static void mc6845_screen_configure(running_machine *machine) |
| 195 | 194 | { |
| 196 | 195 | rectangle visarea; |
| r2415 | r2416 | |
| 201 | 200 | |
| 202 | 201 | /* Resize the screen */ |
| 203 | 202 | visarea.min_x = 0; |
| 204 | | visarea.max_x = width; |
| 203 | visarea.max_x = width-1; |
| 205 | 204 | visarea.min_y = 0; |
| 206 | | visarea.max_y = height; |
| 205 | visarea.max_y = height-1; |
| 207 | 206 | if ((width < 610) && (height < 460) && (bytes < 0x1000)) /* bounds checking to prevent an assert or violation */ |
| 208 | | video_screen_set_visarea(machine->primary_screen, 0, width+1, 0, height+1); |
| 207 | video_screen_set_visarea(machine->primary_screen, 0, width, 0, height); |
| 209 | 208 | } |
| 210 | 209 | |
| 211 | 210 | static VIDEO_EOF( super80m ) |
| r2415 | r2416 | |
| 305 | 304 | |
| 306 | 305 | decodechar(screen->machine->gfx[0],256, pcgram); // and into machine graphics |
| 307 | 306 | |
| 308 | | for( i = screen_home; (i < (bytes + screen_home)) & (i < 0x1000); i++ ) |
| 307 | for( i = 0; i < bytes; i++ ) |
| 309 | 308 | { |
| 310 | | int sx, sy, chr, col; |
| 311 | | sy = ((i - screen_home) / mc6845_reg[1]) * (mc6845_reg[9] + 1); |
| 312 | | sx = ((i - screen_home) % mc6845_reg[1]) * 7; |
| 313 | | chr = videoram[i]; |
| 309 | int mem = (i + screen_home) & 0xfff; |
| 310 | int sy = (i / mc6845_reg[1]) * (mc6845_reg[9] + 1); |
| 311 | int sx = (i % mc6845_reg[1]) * 7; |
| 312 | int chr = videoram[mem]; |
| 314 | 313 | |
| 315 | 314 | /* get colour or b&w */ |
| 315 | int col = 5; /* green */ |
| 316 | 316 | if ((options & 0x60) == 0x60) col = 15; /* b&w */ |
| 317 | | else col = 5; /* green */ |
| 318 | | if (!(options & 0x40)) col = colorram[i]; // read a byte of colour |
| 317 | if (!(options & 0x40)) col = colorram[mem]; // read a byte of colour |
| 319 | 318 | |
| 320 | 319 | if ((!super80v_rom_pcg) && (chr > 0x7f)) // is it a high chr in inverse mode |
| 321 | 320 | { |