Previous 199869 Revisions Next

r21005 Tuesday 12th February, 2013 at 22:19:39 UTC by Angelo Salese
Fixed a bug
[src/emu/video]stvvdp2.c

trunk/src/emu/video/stvvdp2.c
r21004r21005
30273027   int x_index_base, y_index, sx, sy, ex, ey;
30283028   int xinc, yinc;
30293029
3030   if(stv2_current_tilemap.window_control & 6)
3031      popmessage("Window Enabled for Alpha");
3032
30333030   xinc = flipx ? -1 : 1;
30343031   yinc = flipy ? -1 : 1;
30353032
r21004r21005
30833080            int x_index = x_index_base;
30843081            for (x = sx; x < ex; x++)
30853082            {
3086               int c = (source[x_index]);
3087               if (c != transparent_color)
3088                  dest[x] = alpha_blend_r32( dest[x], pal[c], alpha );;
3083               if(stv_vdp2_window_process(x,y))
3084               {
3085                  int c = (source[x_index]);
3086                  if (c != transparent_color)
3087                     dest[x] = alpha_blend_r32( dest[x], pal[c], alpha );;
3088               }
30893089
30903090               x_index += xinc;
30913091            }
r21004r21005
31573157            int x_index = x_index_base;
31583158            for (x = sx; x < ex; x++)
31593159            {
3160               if(!stv_vdp2_window_process(x,y))
3161                  continue;
3160               if(stv_vdp2_window_process(x,y))
3161               {
3162                  int c = (source[x_index]);
3163                  if (c != transparent_color)
3164                     dest[x] = pal[c];
3165               }
31623166
3163               int c = (source[x_index]);
3164               if (c != transparent_color)
3165                  dest[x] = pal[c];
3166
31673167               x_index += xinc;
31683168            }
31693169            y_index += yinc;
r21004r21005
57345734
57355735      if ( window_control )
57365736      {
5737         popmessage("Window control for RBG");
57375738         stv2_current_tilemap.window_control = window_control;
57385739         stv_vdp2_apply_window_on_layer(mycliprect);
57395740      }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team