Previous 15994 Revisions Next

r2416 Saturday 19th April, 2008 at 07:18:25 UTC by Robbbert
[SUPER80] super80v - Fixed a minor display issue.
[src/mess/drivers]super80.c

src/mess/drivers/super80.c
r2415r2416
189189   if (curs_type == 3) for (i = r11; i < r10;i++) mc6845_cursor[i]=0; // now take a bite out of the middle
190190}
191191
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 */
194193static void mc6845_screen_configure(running_machine *machine)
195194{
196195   rectangle visarea;
r2415r2416
201200
202201   /* Resize the screen */
203202   visarea.min_x = 0;
204   visarea.max_x = width;
203   visarea.max_x = width-1;
205204   visarea.min_y = 0;
206   visarea.max_y = height;
205   visarea.max_y = height-1;
207206   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);
209208}
210209
211210static VIDEO_EOF( super80m )
r2415r2416
305304
306305   decodechar(screen->machine->gfx[0],256, pcgram);         // and into machine graphics
307306
308   for( i = screen_home; (i < (bytes + screen_home)) & (i < 0x1000); i++ )
307   for( i = 0; i < bytes; i++ )
309308   {
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];
314313
315314      /* get colour or b&w */
315      int col = 5;               /* green */
316316      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
319318
320319      if ((!super80v_rom_pcg) && (chr > 0x7f))         // is it a high chr in inverse mode
321320      {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team