[cairo-commit] boilerplate/cairo-boilerplate-win32-printing.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Sun Oct 21 07:32:42 PDT 2007


 boilerplate/cairo-boilerplate-win32-printing.c |   21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

New commits:
commit f073a83251e56f641a522764c5cab1d71a786a60
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Mon Oct 22 00:02:23 2007 +0930

    win32-printing: fix error in comment

diff --git a/boilerplate/cairo-boilerplate-win32-printing.c b/boilerplate/cairo-boilerplate-win32-printing.c
index 8de176c..a42a0cf 100644
--- a/boilerplate/cairo-boilerplate-win32-printing.c
+++ b/boilerplate/cairo-boilerplate-win32-printing.c
@@ -126,16 +126,17 @@ create_printer_dc (win32_target_closure_t *ptc)
     /* The printer device units on win32 are 1 unit == 1 dot and the
      * origin is the start of the printable area. We transform the
      * cordinate space to 1 unit is 1 point as expected by the
-     * tests. As the page size is larger than the test surface sizes,
-     * the origin down so that the each test is drawn at the bottom
-     * left corner of the page. This is because the bottom left corner
-     * of the PNG image that ghostscript creates is positioned at
-     * origin of the PS coordinates (ie the bottom left of the page).
-     * The left and bottom margins are stored in win32_target_closure
-     * as size of the PNG image needs to be increased as the test
-     * output is offset from the bottom left by the non printable
-     * margins. After the PNG is created the margins will be chopped
-     * off so the image matches the reference image.
+     * tests. As the page size is larger than the test surface, the
+     * origin is translated down so that the each test is drawn at the
+     * bottom left corner of the page. This is because the bottom left
+     * corner of the PNG image that ghostscript creates is positioned
+     * at origin of the PS coordinates (ie the bottom left of the
+     * page).  The left and bottom margins are stored in
+     * win32_target_closure as size of the PNG image needs to be
+     * increased because the test output is offset from the bottom
+     * left by the non printable margins. After the PNG is created the
+     * margins will be chopped off so the image matches the reference
+     * image.
      */
     printable_height = GetDeviceCaps (ptc->dc, VERTRES);
     x_dpi = GetDeviceCaps (ptc->dc, LOGPIXELSX);


More information about the cairo-commit mailing list