diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-04-02 08:44:13 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-04-02 08:44:13 +0000 |
commit | 7a56e5ab47ee7694c0f050c0149851814f181939 (patch) | |
tree | 36941c2995845510795df4640d519ec1feb8036f /canvas | |
parent | 8bd075fd841ae860d4cb20d74862512663553bc5 (diff) |
INTEGRATION: CWS cairoquartz01 (1.4.22); FILE MERGED
2007/12/10 17:45:38 mox 1.4.22.3: RESYNC: (1.5-1.6); FILE MERGED
2007/07/28 15:31:00 mox 1.4.22.2: RESYNC: (1.4-1.5); FILE MERGED
2007/06/02 23:05:33 thb 1.4.22.1: #i70519# Merged in tml's fixes for WinCairo; made code compile warning-free under Linux; added prex/postx.h (which where already referenced); cleaned up a bit; replaces plain round() call with basegfx::fround; asserting unexpected/unimplemented case at selected places
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_spritehelper.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/canvas/source/cairo/cairo_spritehelper.cxx b/canvas/source/cairo/cairo_spritehelper.cxx index 9f93aa72af84..dfa9eabb62bc 100644 --- a/canvas/source/cairo/cairo_spritehelper.cxx +++ b/canvas/source/cairo/cairo_spritehelper.cxx @@ -4,9 +4,9 @@ * * $RCSfile: cairo_spritehelper.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: rt $ $Date: 2007-11-09 11:32:38 $ + * last change: $Author: kz $ $Date: 2008-04-02 09:44:12 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -138,8 +138,8 @@ namespace cairocanvas aTransform.get( 0, 0 ), aTransform.get( 1, 0 ), aTransform.get( 0, 1 ), aTransform.get( 1, 1 ), aTransform.get( 0, 2 ), aTransform.get( 1, 2 ) ); - aMatrix.x0 = round( aMatrix.x0 ); - aMatrix.y0 = round( aMatrix.y0 ); + aMatrix.x0 = basegfx::fround( aMatrix.x0 ); + aMatrix.y0 = basegfx::fround( aMatrix.y0 ); cairo_matrix_init( &aInverseMatrix, aMatrix.xx, aMatrix.yx, aMatrix.xy, aMatrix.yy, aMatrix.x0, aMatrix.y0 ); cairo_matrix_invert( &aInverseMatrix ); @@ -148,8 +148,8 @@ namespace cairocanvas cairo_set_matrix( pCairo, &aMatrix ); } - fX = round( fX ); - fY = round( fY ); + fX = basegfx::fround( fX ); + fY = basegfx::fround( fY ); cairo_matrix_t aOrigMatrix; cairo_get_matrix( pCairo, &aOrigMatrix ); |