Previous 15994 Revisions Next

r7745 Wednesday 7th April, 2010 at 01:01:36 UTC by Barry Rodewald
[FMTOWNS] Added layer disable functionality.
[src/mess/video]fmtowns.c

src/mess/video/fmtowns.c
r7744r7745
116116static UINT8 towns_display_plane;
117117static UINT8 towns_display_page_sel;
118118static UINT8 towns_vblank_flag;
119static UINT8 towns_layer_ctrl;
119120
120121extern UINT32* towns_vram;
121122extern UINT8* towns_gfxvram;
r7744r7745
561562         towns_degipal[offset-0x08] = data;
562563         towns_dpmd_flag = 1;
563564         break;
565      case 0x10:
566         towns_layer_ctrl = data;   
567         break;
564568   }
565569   logerror("VID: wrote 0x%02x to port %04x\n",data,offset+0xfd90);
566570}
r7744r7745
13891393   if(!(towns_video_reg[1] & 0x01))
13901394   {
13911395      if(!input_code_pressed(screen->machine,KEYCODE_Q))
1392         towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[1],1);
1396      {
1397         if((towns_layer_ctrl & 0x03) != 0)
1398            towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[1],1);
1399      }
13931400      if(!input_code_pressed(screen->machine,KEYCODE_W))
1394         towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[0],0);
1401      {
1402         if((towns_layer_ctrl & 0x0c) != 0)
1403            towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[0],0);
1404      }
13951405   }
13961406   else
13971407   {
13981408      if(!input_code_pressed(screen->machine,KEYCODE_Q))
1399         towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[0],0);
1409      {
1410         if((towns_layer_ctrl & 0x0c) != 0)
1411            towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[0],0);
1412      }
14001413      if(!input_code_pressed(screen->machine,KEYCODE_W))
1401         towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[1],1);
1414      {
1415         if((towns_layer_ctrl & 0x03) != 0)
1416            towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[1],1);
1417      }
14021418   }
14031419
14041420/*#ifdef SPR_DEBUG

Previous 15994 Revisions Next


© 1998-2018 The MESS Team