Commit 344df7fc authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Fix an x-axis orientation error

I noticed because the pixmaps were not correctly drawn.
parent aec4631c
......@@ -67,8 +67,7 @@ namespace TarotCairo {
var font_size = 4;
context.select_font_face ("Sans", Cairo.FontSlant.NORMAL, Cairo.FontWeight.BOLD);
context.set_font_size (font_size);
context.scale (1, -1);
context.translate (1, -card_height + font_size);
context.translate (1, font_size);
context.show_text (number);
context.move_to (0, font_size);
context.show_text (suit);
......
......@@ -126,7 +126,7 @@ namespace Tarot {
context.save ();
context.translate (p.x, p.y);
context.rotate (p.angle);
context.scale (p.scale, p.scale);
context.scale (p.scale, -p.scale);
paint (i, cards[i], is_selected[i], is_selectable[i], context);
context.restore ();
}
......@@ -137,7 +137,7 @@ namespace Tarot {
context.save ();
context.translate (p.x, p.y);
context.rotate (p.angle);
context.scale (p.scale, p.scale);
context.scale (p.scale, -p.scale);
bool s = is_selected[i];
bool sa = is_selectable[i];
paint (i, cards[i], s, sa, context);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment