[cairo-commit] Branch '1.2' - src/cairo-win32-surface.c
Behdad Esfahbod
behdad at kemper.freedesktop.org
Thu Nov 2 14:51:20 PST 2006
src/cairo-win32-surface.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
New commits:
diff-tree 37dcbe61cf8881aa4b3101d96235ad9abe7ef1bb (from 892a050007eafddced21c03d9f10397dacabfd2b)
Author: Tor Lillqvist <tml at iki.fi>
Date: Thu Nov 2 17:17:44 2006 -0500
[win32] Use CAIRO_FORMAT_RGB24 for BITSPIXEL==32 surfaces too
From:
http://lists.freedesktop.org/archives/cairo/2006-October/008122.html
diff --git a/src/cairo-win32-surface.c b/src/cairo-win32-surface.c
index b76fc1b..8bd9569 100755
--- a/src/cairo-win32-surface.c
+++ b/src/cairo-win32-surface.c
@@ -1015,7 +1015,7 @@ cairo_win32_surface_create (HDC hdc)
if (GetDeviceCaps(hdc, TECHNOLOGY) == DT_RASDISPLAY) {
depth = GetDeviceCaps(hdc, BITSPIXEL);
if (depth == 32)
- format = CAIRO_FORMAT_ARGB32;
+ format = CAIRO_FORMAT_RGB24;
else if (depth == 24)
format = CAIRO_FORMAT_RGB24;
else if (depth == 16)
More information about the cairo-commit
mailing list