[cairo-commit] cairo/src cairo-win32-font.c,1.30,1.31

Owen Taylor commit at pdx.freedesktop.org
Thu Jul 28 10:15:38 PDT 2005


Committed by: otaylor

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv1939/src

Modified Files:
	cairo-win32-font.c 
Log Message:
2005-07-28  Owen Taylor  <otaylor at redhat.com>

        * src/cairo-win32-font.c (_draw_glyphs_on_surface): Pass
        -1 not 1 to RestoreDC to restore to the last SaveDC.
        (#3905, Stuart Parmenter


Index: cairo-win32-font.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-win32-font.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- cairo-win32-font.c	28 Jul 2005 16:46:38 -0000	1.30
+++ cairo-win32-font.c	28 Jul 2005 17:15:36 -0000	1.31
@@ -958,7 +958,7 @@
     _finish_glyphs (&state);
     cairo_win32_scaled_font_done_font (&scaled_font->base);
  FAIL1:
-    RestoreDC (surface->dc, 1);
+    RestoreDC (surface->dc, -1);
     
     return status;
 }




More information about the cairo-commit mailing list