Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tarot
tarot
Commits
344df7fc
Commit
344df7fc
authored
Dec 18, 2019
by
Vivien Kraus
Browse files
Fix an x-axis orientation error
I noticed because the pixmaps were not correctly drawn.
parent
aec4631c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/tarot-app/card_painter_default.vala
View file @
344df7fc
...
...
@@ -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
);
...
...
src/tarot-app/gui/card_view.vala
View file @
344df7fc
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment