Previous 15994 Revisions Next

r2344 Wednesday 9th April, 2008 at 11:09:47 UTC by Robbbert
[MBEE] mbee - net - remove mush at bottom of screen.
[src/mess/video]mbee.c

src/mess/video/mbee.c
r2343r2344
443443
444444   UINT16 width = crt.horizontal_displayed*8-1;                     // width in pixels
445445   UINT16 height = crt.vertical_displayed*(crt.scan_lines+1)-1;               // height in pixels
446   UINT16 bytes = crt.horizontal_displayed*crt.vertical_displayed-1;            // video ram needed -1
446   UINT16 bytes = crt.horizontal_displayed*crt.vertical_displayed-1;            // video ram needed
447447
448   if (width > 511) width=511;   
449   if (height > 255) height=255;
450
448451   /* Resize the screen */
449452   visarea.min_x = 0;
450453   visarea.max_x = width-1;
451454   visarea.min_y = 0;
452455   visarea.max_y = height-1;
453   if ((width < 610) && (height < 460) && (bytes < 0x800))   /* bounds checking to prevent an assert or violation */
454      video_screen_set_visarea(machine->primary_screen, 0, width, 0, height);
456   if (bytes < 0x800) video_screen_set_visarea(machine->primary_screen, 0, width, 0, height);
455457}
456458
457459VIDEO_START( mbee )
r2343r2344
479481   framecnt++;
480482
481483   /* Get the graphics of the character under the cursor, xor with the visible cursor scan lines,
482      and store as character number 256. If inverse mode, drop bit 7 of character before xoring */
484      and store as character number 256. */
483485   for ( i = 0; i < ARRAY_LENGTH(mc6845_cursor); i++)
484486      pcgram[0x1000+i] = pcgram[(videoram[cursor]<<4) + i] ^ mc6845_cursor[i];
485487
r2343r2344
487489
488490   for( i = 0; i < bytes; i++ )
489491   {
490      int mem = ((i + screen_home) & 0x7ff);
492      int mem = (i + screen_home) & 0x7ff;
491493      int sy = (i / crt.horizontal_displayed) * (crt.scan_lines + 1);
492494      int sx = (i % crt.horizontal_displayed) << 3;
493495      int chr = videoram[mem];
r2343r2344
502504            chr = 256;               // 256 = cursor character
503505
504506      drawgfx( bitmap, screen->machine->gfx[0],chr,0,0,0,sx,sy,
505         cliprect,TRANSPARENCY_NONE,0);   // put character on the screen
507         NULL,TRANSPARENCY_NONE,0);   // put character on the screen
506508   }
507509     
508510   return 0;
r2343r2344
521523   framecnt++;
522524
523525   /* Get the graphics of the character under the cursor, xor with the visible cursor scan lines,
524      and store as character number 256. If inverse mode, drop bit 7 of character before xoring */
526      and store as character number 256. */
525527   for ( i = 0; i < ARRAY_LENGTH(mc6845_cursor); i++)
526528      pcgram[0x1000+i] = pcgram[(videoram[cursor]<<4) + i] ^ mc6845_cursor[i];
527529
r2343r2344
529531
530532   for( i = 0; i < bytes; i++ )
531533   {
532      int mem = ((i + screen_home) & 0x7ff);
534      int mem = (i + screen_home) & 0x7ff;
533535      int sy = (i / crt.horizontal_displayed) * (crt.scan_lines + 1);
534536      int sx = (i % crt.horizontal_displayed) << 3;
535537      int chr = videoram[mem];

Previous 15994 Revisions Next


© 1998-2018 The MESS Team