Skip to content

Commit

Permalink
Make vertical location be case-insesitive LP#1716221
Browse files Browse the repository at this point in the history
  • Loading branch information
cjd committed Sep 12, 2017
1 parent 174d706 commit 3a1ec4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/display.c
Expand Up @@ -269,16 +269,16 @@ set_maintext (const gchar * text, int transition, gboolean wrap)
gfloat final_x = stage_width / 2;
gfloat final_y = stage_height / 2;

if (horiloc[0] == 'L') {
if ((horiloc[0] == 'L') || (horiloc[0] == 'l')) {
final_x = clutter_actor_get_width (maintext) / 2;
} else if (horiloc[0] == 'R') {
} else if ((horiloc[0] == 'R') || (horiloc[0] == 'r')) {
final_x = stage_width - (clutter_actor_get_width (maintext) / 2);
}
if (vertloc[0] == 'T') {
if ((vertloc[0] == 'T') || (vertloc[0] == 't')) {
final_y =
(clutter_actor_get_height (maintext) / 2) +
clutter_actor_get_height (foottext);
} else if (vertloc[0] == 'B') {
} else if ((vertloc[0] == 'B') || (vertloc[0] == 'b')) {
final_y =
stage_height - ((clutter_actor_get_height (maintext) / 2) +
clutter_actor_get_height (foottext));
Expand Down

0 comments on commit 3a1ec4f

Please sign in to comment.