diff options
Diffstat (limited to 'apps/gui/skin_engine/skin_display.c')
-rw-r--r-- | apps/gui/skin_engine/skin_display.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index ea2c794272..b8cc75e10a 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #endif | 31 | #endif |
32 | #include "abrepeat.h" | 32 | #include "abrepeat.h" |
33 | #include "lang.h" | 33 | #include "lang.h" |
34 | #include "language.h" | ||
34 | #include "statusbar.h" | 35 | #include "statusbar.h" |
35 | #include "scrollbar.h" | 36 | #include "scrollbar.h" |
36 | #include "screen_access.h" | 37 | #include "screen_access.h" |
@@ -528,8 +529,10 @@ static bool get_line(struct gui_wps *gwps, | |||
528 | #endif | 529 | #endif |
529 | 530 | ||
530 | case WPS_TOKEN_ALIGN_LEFT: | 531 | case WPS_TOKEN_ALIGN_LEFT: |
532 | case WPS_TOKEN_ALIGN_LEFT_RTL: | ||
531 | case WPS_TOKEN_ALIGN_CENTER: | 533 | case WPS_TOKEN_ALIGN_CENTER: |
532 | case WPS_TOKEN_ALIGN_RIGHT: | 534 | case WPS_TOKEN_ALIGN_RIGHT: |
535 | case WPS_TOKEN_ALIGN_RIGHT_RTL: | ||
533 | /* remember where the current aligned text started */ | 536 | /* remember where the current aligned text started */ |
534 | switch (cur_align) | 537 | switch (cur_align) |
535 | { | 538 | { |
@@ -551,12 +554,20 @@ static bool get_line(struct gui_wps *gwps, | |||
551 | case WPS_TOKEN_ALIGN_LEFT: | 554 | case WPS_TOKEN_ALIGN_LEFT: |
552 | cur_align = WPS_ALIGN_LEFT; | 555 | cur_align = WPS_ALIGN_LEFT; |
553 | break; | 556 | break; |
557 | case WPS_TOKEN_ALIGN_LEFT_RTL: | ||
558 | cur_align = lang_is_rtl() ? WPS_ALIGN_RIGHT : | ||
559 | WPS_ALIGN_LEFT; | ||
560 | break; | ||
554 | case WPS_TOKEN_ALIGN_CENTER: | 561 | case WPS_TOKEN_ALIGN_CENTER: |
555 | cur_align = WPS_ALIGN_CENTER; | 562 | cur_align = WPS_ALIGN_CENTER; |
556 | break; | 563 | break; |
557 | case WPS_TOKEN_ALIGN_RIGHT: | 564 | case WPS_TOKEN_ALIGN_RIGHT: |
558 | cur_align = WPS_ALIGN_RIGHT; | 565 | cur_align = WPS_ALIGN_RIGHT; |
559 | break; | 566 | break; |
567 | case WPS_TOKEN_ALIGN_RIGHT_RTL: | ||
568 | cur_align = lang_is_rtl() ? WPS_ALIGN_LEFT : | ||
569 | WPS_ALIGN_RIGHT; | ||
570 | break; | ||
560 | default: | 571 | default: |
561 | break; | 572 | break; |
562 | } | 573 | } |