[cairo-commit] src/cairo-wgl-context.c

Chris Wilson ickle at kemper.freedesktop.org
Fri Nov 26 01:49:01 PST 2010


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

New commits:
commit 2a1e7e18de7c071bb7c445ae3e6c94b8f2a1590b
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Nov 26 09:46:57 2010 +0000

    wgl: Use CreateWindowA with an ASCII string
    
    ... or else compilation with fail on Windows if UNICODE is defined
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-wgl-context.c b/src/cairo-wgl-context.c
index ac15b1d..308d57a 100644
--- a/src/cairo-wgl-context.c
+++ b/src/cairo-wgl-context.c
@@ -153,7 +153,7 @@ _wgl_dummy_ctx (cairo_wgl_context_t *ctx)
 
     RegisterClassExA (&wincl);
 
-    ctx->dummy_wnd = CreateWindow ("cairo_wgl_context_dummy", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+    ctx->dummy_wnd = CreateWindowA ("cairo_wgl_context_dummy", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
     ctx->dummy_dc = GetDC (ctx->dummy_wnd);
 
     ZeroMemory (&pfd, sizeof (PIXELFORMATDESCRIPTOR));


More information about the cairo-commit mailing list