diff options
author | Tor Lillqvist <tml@iki.fi> | 2006-11-02 17:17:44 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2006-11-02 17:17:44 -0500 |
commit | 37dcbe61cf8881aa4b3101d96235ad9abe7ef1bb (patch) | |
tree | e907a169601eb7edf6a701f35fd23d7f46d2fc8e | |
parent | 892a050007eafddced21c03d9f10397dacabfd2b (diff) | |
download | cairo-37dcbe61cf8881aa4b3101d96235ad9abe7ef1bb.tar.gz |
[win32] Use CAIRO_FORMAT_RGB24 for BITSPIXEL==32 surfaces too
From:
http://lists.freedesktop.org/archives/cairo/2006-October/008122.html
-rwxr-xr-x | src/cairo-win32-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-win32-surface.c b/src/cairo-win32-surface.c index b76fc1b22..8bd956922 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) |