trunk/src/emu/video/stvvdp2.c
| r21004 | r21005 | |
| 3027 | 3027 | int x_index_base, y_index, sx, sy, ex, ey; |
| 3028 | 3028 | int xinc, yinc; |
| 3029 | 3029 | |
| 3030 | | if(stv2_current_tilemap.window_control & 6) |
| 3031 | | popmessage("Window Enabled for Alpha"); |
| 3032 | | |
| 3033 | 3030 | xinc = flipx ? -1 : 1; |
| 3034 | 3031 | yinc = flipy ? -1 : 1; |
| 3035 | 3032 | |
| r21004 | r21005 | |
| 3083 | 3080 | int x_index = x_index_base; |
| 3084 | 3081 | for (x = sx; x < ex; x++) |
| 3085 | 3082 | { |
| 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 | } |
| 3089 | 3089 | |
| 3090 | 3090 | x_index += xinc; |
| 3091 | 3091 | } |
| r21004 | r21005 | |
| 3157 | 3157 | int x_index = x_index_base; |
| 3158 | 3158 | for (x = sx; x < ex; x++) |
| 3159 | 3159 | { |
| 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 | } |
| 3162 | 3166 | |
| 3163 | | int c = (source[x_index]); |
| 3164 | | if (c != transparent_color) |
| 3165 | | dest[x] = pal[c]; |
| 3166 | | |
| 3167 | 3167 | x_index += xinc; |
| 3168 | 3168 | } |
| 3169 | 3169 | y_index += yinc; |
| r21004 | r21005 | |
| 5734 | 5734 | |
| 5735 | 5735 | if ( window_control ) |
| 5736 | 5736 | { |
| 5737 | popmessage("Window control for RBG"); |
| 5737 | 5738 | stv2_current_tilemap.window_control = window_control; |
| 5738 | 5739 | stv_vdp2_apply_window_on_layer(mycliprect); |
| 5739 | 5740 | } |