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

Adrian Johnson ajohnson at kemper.freedesktop.org
Wed Mar 26 05:35:06 PDT 2008


 src/cairo-win32-font.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ed42916028e4f51949210de6ecf4ebc5095aa45c
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Wed Mar 26 23:04:35 2008 +1030

    Win32: Fix bug in cairo_win32_font_face_create_for_hfont()
    
    Use GetObjectW for LOGFONTW.

diff --git a/src/cairo-win32-font.c b/src/cairo-win32-font.c
index b560b48..27b5819 100644
--- a/src/cairo-win32-font.c
+++ b/src/cairo-win32-font.c
@@ -1907,7 +1907,7 @@ cairo_font_face_t *
 cairo_win32_font_face_create_for_hfont (HFONT font)
 {
     LOGFONTW logfont;
-    GetObject (font, sizeof(logfont), &logfont);
+    GetObjectW (font, sizeof(logfont), &logfont);
 
     if (logfont.lfEscapement != 0 || logfont.lfOrientation != 0 ||
         logfont.lfWidth != 0) {


More information about the cairo-commit mailing list