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

gamez fan
Reged: 02/23/13
Posts: 213
Send PM
Hack Playchoice 10 To Load Full Screen
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







Entire thread
Subject Posted by Posted on
* Hack Playchoice 10 To Load Full Screen gamez fan 10/31/13 12:50 AM
. * Re: Hack Playchoice 10 To Load Full Screen R. Belmont  10/31/13 05:21 PM
. * Re: Hack Playchoice 10 To Load Full Screen gamez fan  10/31/13 09:12 PM

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