[Spice-commits] display/surface.c

Alexander Larsson alexl at kemper.freedesktop.org
Fri Apr 23 12:01:58 PDT 2010


 display/surface.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit ab23fae40b30e168c1ad18e2e1215774a76c07dc
Author: Alexander Larsson <alexl at redhat.com>
Date:   Fri Apr 23 21:00:05 2010 +0200

    Always make surfaces xRGB, since ARGB breaks things
    
    We can't have ARGB surface unless the app really ensures all
    alpha bytes are valid, otherwise when they are e.g. zero
    we interpret this as the destination being transparent in e.g.
    alphablend.

diff --git a/display/surface.c b/display/surface.c
index 552b756..4a84f45 100644
--- a/display/surface.c
+++ b/display/surface.c
@@ -93,11 +93,7 @@ HBITMAP CreateDeviceBitmap(PDev *pdev, SIZEL size, ULONG format, QXLPHYSICAL *ph
             break;
         case BMF_24BPP:
         case BMF_32BPP:
-            if (allocation_type == DEVICE_BITMAP_ALLOCATION_TYPE_SURF0) {
-                surface_format = SPICE_SURFACE_FMT_32_xRGB;
-            } else {
-                surface_format = SPICE_SURFACE_FMT_32_ARGB;
-            }
+            surface_format = SPICE_SURFACE_FMT_32_xRGB;
             depth = 32;
             break;
         case BMF_8BPP:


More information about the Spice-commits mailing list