mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
fixed printing of rotated cards
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1168 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user