Stefan Dösinger : wined3d: Handle DDPCAPS_ALPHA.

Alexandre Julliard julliard at wine.codeweavers.com
Tue May 8 13:17:01 CDT 2007


Module: wine
Branch: master
Commit: c9bc4ee760f7434ef887e33bfe26e1fccfbc04b0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c9bc4ee760f7434ef887e33bfe26e1fccfbc04b0

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sun Apr 29 15:51:47 2007 +0200

wined3d: Handle DDPCAPS_ALPHA.

---

 dlls/wined3d/surface.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 9a41f8f..9829f22 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1662,6 +1662,8 @@ HRESULT d3dfmt_convert_surface(BYTE *src, BYTE *dst, UINT pitch, UINT width, UIN
                           one often used by application to prevent the nice purple borders when bi-linear
                           filtering is on */
                         table[i][3] = 0x00;
+                    } else if(pal->Flags & WINEDDPCAPS_ALPHA) {
+                        table[i][3] = pal->palents[i].peFlags;
                     } else {
                         table[i][3] = 0xFF;
                     }
@@ -1807,6 +1809,8 @@ static void d3dfmt_p8_upload_palette(IWineD3DSurface *iface, CONVERT_TYPES conve
                    one often used by application to prevent the nice purple borders when bi-linear
                    filtering is on */
                 table[i][3] = 0x00;
+            } else if(pal->Flags & WINEDDPCAPS_ALPHA) {
+                table[i][3] = pal->palents[i].peFlags;
             } else {
                 table[i][3] = 0xFF;
             }




More information about the wine-cvs mailing list