[cairo-commit] src/cairo-win32-surface.c

Vladimir Vukicevic vladimir at kemper.freedesktop.org
Sat Apr 1 08:57:06 PST 2006


 src/cairo-win32-surface.c |    2 ++
 1 files changed, 2 insertions(+)

New commits:
diff-tree 03eb1b85a906fac4acfbf3ee2839d13ccac97668 (from 6a430478f508361767bff91132c3978234b76e95)
Author: Vladimir Vukicevic <vladimir at pobox.com>
Date:   Fri Mar 10 11:57:41 2006 -0800

    [win32] Add missing depth-16 format check
    (cherry picked from 969d624db8d32d35361bbcc89dbcc354f3d48eaa commit)

diff --git a/src/cairo-win32-surface.c b/src/cairo-win32-surface.c
index 3e88ec5..310561a 100644
--- a/src/cairo-win32-surface.c
+++ b/src/cairo-win32-surface.c
@@ -996,6 +996,8 @@ cairo_win32_surface_create (HDC hdc)
 	    format = CAIRO_FORMAT_ARGB32;
 	else if (depth == 24)
 	    format = CAIRO_FORMAT_RGB24;
+        else if (depth == 16)
+            format = CAIRO_FORMAT_RGB24;
 	else if (depth == 8)
 	    format = CAIRO_FORMAT_A8;
 	else if (depth == 1)


More information about the cairo-commit mailing list