MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

gamez fan
Reged: 02/23/13
Posts: 213
Send PM


Hack Playchoice 10 To Load Full Screen
#316574 - 10/31/13 12:50 AM


Just a quick question if you guys dont mind if you wanted the
playchoice 10 games to load full screen on your TV how would you
code this in Mame84 would you add a little hack to bypass the
monitor handling code below


Quote:



/***************************************************************************

Display refresh

***************************************************************************/
VIDEO_UPDATE( playch10 )
{
/* Dual monitor version */
if(system_bios == 0)
{
struct rectangle top_monitor = Machine->visible_area;
struct rectangle bottom_monitor = Machine->visible_area;

top_monitor.max_y = ( top_monitor.max_y - top_monitor.min_y ) / 2;
bottom_monitor.min_y = ( bottom_monitor.max_y - bottom_monitor.min_y ) / 2;

/* On Playchoice 10 single monitor, this bit toggles */
/* between PPU and BIOS display. */
/* We support the multi-monitor layout. In this case, */
/* if the bit is not set, then we should display */
/* the PPU portion. */

if ( !pc10_dispmask )
{
/* render the ppu */
ppu2c03b_render( 0, bitmap, 0, 0, 0, 30*8 );

/* if this is a gun game, draw a simple crosshair */
if ( pc10_gun_controller )
{
int x_center = readinputport( 5 );
int y_center = readinputport( 6 ) + 30*8;

draw_crosshair(bitmap, x_center, y_center, &bottom_monitor, 0);
}
}

/* When the bios is accessing vram, the video circuitry can't access it */

if ( !pc10_sdcs )
{
tilemap_draw(bitmap, &top_monitor, bg_tilemap, 0, 0);
}
}
else /* Single Monitor version */
{
struct rectangle top_monitor = Machine->visible_area;

top_monitor.max_y = ( top_monitor.max_y - top_monitor.min_y ) / 2;

if(pc10_dispmask_old != pc10_dispmask)
{
pc10_dispmask_old = pc10_dispmask;

if(pc10_dispmask)
pc10_game_mode ^= 1;
}


if ( pc10_game_mode )
{
/* render the ppu */
ppu2c03b_render( 0, bitmap, 0, 0, 0, 0 );

/* if this is a gun game, draw a simple crosshair */
if ( pc10_gun_controller )
{
int x_center = readinputport( 5 );
int y_center = readinputport( 6 );

draw_crosshair(bitmap, x_center, y_center, &top_monitor, 0);
}
}
else
{
/* When the bios is accessing vram, the video circuitry can't access it */

if ( !pc10_sdcs )
{
tilemap_draw(bitmap, &top_monitor, bg_tilemap, 0, 0);
}





im curious as to how you would code a bypass to make the games use full
screen when playing with the single monitor bios as in my mame emulator
the games always load just using the top part of the screen



Arcade Addict



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9714
Loc: ECV-197 The Orville
Send PM


Re: Hack Playchoice 10 To Load Full Screen new [Re: gamez fan]
#316615 - 10/31/13 05:21 PM


In current MAME, doing that is a user-accessible option in the tab menu. As we've told you before, any hacking you want to do on 0.84 is up to you.



gamez fan
Reged: 02/23/13
Posts: 213
Send PM


Re: Hack Playchoice 10 To Load Full Screen new [Re: R. Belmont]
#316632 - 10/31/13 09:12 PM


Fair enough i get the message i wont post again asking for coding advice with mame84



Arcade Addict


Pages: 1

MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Pi 
0 registered and 18 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4183