Previous 199869 Revisions Next

r21053 Wednesday 13th February, 2013 at 23:30:42 UTC by Angelo Salese
vfkids trips this one, hook it up
[src/emu/video]stvvdp2.c

trunk/src/emu/video/stvvdp2.c
r21052r21053
23802380{
23812381   rectangle myclip;
23822382
2383   if(stv2_current_tilemap.window_control & 6)
2384      popmessage("Window Enabled for Zoomed tiles");
2385
23862383   if (!scalex || !scaley) return;
23872384
23882385   if (gfx->has_pen_usage() && transparency == STV_TRANSPARENCY_PEN)
r21052r21053
24922489                  int x, x_index = x_index_base;
24932490                  for( x=sx; x<ex; x++ )
24942491                  {
2495                     dest[x] = pal[source[x_index>>16]];
2492                     if(stv_vdp2_window_process(x,y))
2493                        dest[x] = pal[source[x_index>>16]];
24962494                     x_index += dx;
24972495                  }
24982496
24992497                  y_index += dy;
25002498               }
2501            }
2502
2503            /* case 1: STV_TRANSPARENCY_PEN */
2504            if (transparency == STV_TRANSPARENCY_PEN)
2499            } /* case 1: STV_TRANSPARENCY_PEN */
2500            else if (transparency == STV_TRANSPARENCY_PEN)
25052501            {
25062502               for( y=sy; y<ey; y++ )
25072503               {
r21052r21053
25112507                  int x, x_index = x_index_base;
25122508                  for( x=sx; x<ex; x++ )
25132509                  {
2514                     int c = source[x_index>>16];
2515                     if( c != transparent_color ) dest[x] = pal[c];
2510                     if(stv_vdp2_window_process(x,y))
2511                     {
2512                        int c = source[x_index>>16];
2513                        if( c != transparent_color ) dest[x] = pal[c];
2514                     }
25162515                     x_index += dx;
25172516                  }
25182517
25192518                  y_index += dy;
25202519               }
2521            }
2522
2523            /* case 6: STV_TRANSPARENCY_ALPHA */
2524            if (transparency == STV_TRANSPARENCY_ALPHA)
2520            } /* case 6: STV_TRANSPARENCY_ALPHA */
2521            else if (transparency == STV_TRANSPARENCY_ALPHA)
25252522            {
25262523               for( y=sy; y<ey; y++ )
25272524               {
r21052r21053
25312528                  int x, x_index = x_index_base;
25322529                  for( x=sx; x<ex; x++ )
25332530                  {
2534                     int c = source[x_index>>16];
2535                     if( c != transparent_color ) dest[x] = alpha_blend_r32(dest[x], pal[c], alpha);
2531                     if(stv_vdp2_window_process(x,y))
2532                     {
2533                        int c = source[x_index>>16];
2534                        if( c != transparent_color ) dest[x] = alpha_blend_r32(dest[x], pal[c], alpha);
2535                     }
25362536                     x_index += dx;
25372537                  }
25382538
25392539                  y_index += dy;
25402540               }
2541            }
2542
2543            /* case : STV_TRANSPARENCY_ADD_BLEND */
2544            if (transparency == STV_TRANSPARENCY_ADD_BLEND )
2541            } /* case : STV_TRANSPARENCY_ADD_BLEND */
2542            else if (transparency == STV_TRANSPARENCY_ADD_BLEND )
25452543            {
25462544               for( y=sy; y<ey; y++ )
25472545               {
r21052r21053
25512549                  int x, x_index = x_index_base;
25522550                  for( x=sx; x<ex; x++ )
25532551                  {
2554                     int c = source[x_index>>16];
2555                     if( c != transparent_color ) dest[x] = stv_add_blend(dest[x],pal[c]);
2552                     if(stv_vdp2_window_process(x,y))
2553                     {
2554                        int c = source[x_index>>16];
2555                        if( c != transparent_color ) dest[x] = stv_add_blend(dest[x],pal[c]);
2556                     }
25562557                     x_index += dx;
25572558                  }
25582559
25592560                  y_index += dy;
25602561               }
25612562            }
2562
25632563         }
25642564      }
25652565   }
2566
25672566}
25682567
25692568void saturn_state::stv_vdp2_drawgfxzoom_rgb555(

Previous 199869 Revisions Next


© 1997-2024 The MAME Team