Previous 15994 Revisions Next

r9596 Wednesday 17th November, 2010 at 05:47:04 UTC by Fabio Priuli
Fixed some erroneous comments (my mistakes)
[src/mess/machine]sms.c

src/mess/machine/sms.c
r9595r9596
268268}
269269
270270
271// at each frame we check if lightguns are enabled in one of the ports:
271// at each input port read we check if lightguns are enabled in one of the ports:
272272// if so, we turn on crosshair and the lightgun timer
273273static TIMER_CALLBACK( lightgun_tick )
274274{
r9595r9596
19271927}
19281928
19291929
1930/* This needs to be here to check if segascope has been enabled */
19311930static void sms_black_bitmap( const screen_device *screen, bitmap_t *bitmap )
19321931{
19331932   const int width = screen->width();
r9595r9596
19591958   UINT8 sscope_binocular_hack = input_port_read_safe(screen->machine, "SSCOPE_BINOCULAR", 0x00);
19601959   UINT8 occluded_view = 0;
19611960
1962   // without SuperScope, both LCDs for glasses go black
1961   // without SegaScope, both LCDs for glasses go black
19631962   if ((screen != state->main_scr) && !sscope)
19641963      occluded_view = 1;
19651964
1966   // with SuperScope, sscope_state 0 = left screen OFF, right screen ON
1965   // with SegaScope, sscope_state 0 = left screen OFF, right screen ON
19671966   if (!(state->sscope_state & 0x01) && (screen == state->left_lcd))
19681967      occluded_view = 1;
19691968
1970   // with SuperScope, sscope_state 1 = left screen ON, right screen OFF
1969   // with SegaScope, sscope_state 1 = left screen ON, right screen OFF
19711970   if ((state->sscope_state & 0x01) && (screen == state->right_lcd))
19721971      occluded_view = 1;
19731972         
r9595r9596
20262025   sms_vdp_update(state->vdp, state->tmp_bitmap, cliprect);
20272026
20282027   // HACK: fake LCD persistence effect
2029   // (it would be better to generalized this in the core, to be used for all LCD systems)
2028   // (it would be better to generalize this in the core, to be used for all LCD systems)
20302029   for (y = 0; y < height; y++)
20312030   {
20322031      UINT32 *line0 = BITMAP_ADDR32(state->tmp_bitmap, y, 0);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team