From 2a4a89654051448c523be335ee92d690cd8af45a Mon Sep 17 00:00:00 2001 From: twanvl Date: Sun, 24 Aug 2008 18:27:54 +0000 Subject: [PATCH] fixed printing of rotated cards git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1168 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/print_window.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/print_window.cpp b/src/gui/print_window.cpp index e674649b..e4b1a2aa 100644 --- a/src/gui/print_window.cpp +++ b/src/gui/print_window.cpp @@ -231,11 +231,9 @@ void CardsPrintout::drawCard(DC& dc, const CardP& card, int card_nr) { int w = int(stylesheet.card_width), h = int(stylesheet.card_height); // in pixels if (rotation == 90) swap(w,h); // Draw using text buffer - //TextBufferDC bufferDC(w,h,true); - //RotatedDC rdc(bufferDC, rotation, RealRect(0,0,w,h), 1.0, QUALITY_SUB_PIXEL); double zoom = IsPreview() ? 1 : 4; TextBufferDC bufferDC(w*zoom,h*zoom,false); - RotatedDC rdc(bufferDC, rotation, RealRect(0,0,w*zoom,h*zoom), zoom, QUALITY_AA); + RotatedDC rdc(bufferDC, rotation, stylesheet.getCardRect(), zoom, QUALITY_AA, ROTATION_ATTACH_TOP_LEFT); // render card to dc viewer.setCard(card); viewer.draw(rdc, *wxWHITE);