[Spice-commits] display/driver.c
Izik Eidus
izik at kemper.freedesktop.org
Mon Apr 12 04:25:33 PDT 2010
display/driver.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 657e6fe735d287dbf96ee1d3c853aaa7e1e470fe
Author: Izik Eidus <ieidus at redhat.com>
Date: Mon Apr 12 14:09:02 2010 +0300
qxl: win32: fail in case windows will try to create surface with
diffrent format than primary
This anyway won`t happen in windows, just make it so readers
can understand it
Signed-off-by: Izik Eidus <ieidus at redhat.com>
diff --git a/display/driver.c b/display/driver.c
index a7e168d..13eeabe 100644
--- a/display/driver.c
+++ b/display/driver.c
@@ -1368,7 +1368,8 @@ HBITMAP APIENTRY DrvCreateDeviceBitmap(DHPDEV dhpdev, SIZEL size, ULONG format)
pdev = (PDev *)dhpdev;
- if (!pdev->dd_initialized || !pdev->dd_slot_initialized) {
+ if (!pdev->dd_initialized || !pdev->dd_slot_initialized ||
+ pdev->bitmap_format != format) {
return 0;
}
More information about the Spice-commits
mailing list