diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/color_picker.c | 6 | ||||
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 2 | ||||
-rw-r--r-- | apps/gui/splash.c | 2 | ||||
-rw-r--r-- | apps/gui/statusbar.c | 2 | ||||
-rw-r--r-- | apps/gui/viewport.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/apps/gui/color_picker.c b/apps/gui/color_picker.c index 75c0612292..09d861245a 100644 --- a/apps/gui/color_picker.c +++ b/apps/gui/color_picker.c | |||
@@ -177,7 +177,7 @@ static void draw_screen(struct screen *display, char *title, | |||
177 | 177 | ||
178 | /* Draw title string */ | 178 | /* Draw title string */ |
179 | set_drawinfo(display, DRMODE_SOLID, text_color, background_color); | 179 | set_drawinfo(display, DRMODE_SOLID, text_color, background_color); |
180 | vp.flags |= VP_FLAG_CENTER_ALIGN; | 180 | vp.flags |= VP_FLAG_ALIGN_CENTER; |
181 | display->getstringsize(title, NULL, &y); | 181 | display->getstringsize(title, NULL, &y); |
182 | display->putsxy(0, MARGIN_TOP, title); | 182 | display->putsxy(0, MARGIN_TOP, title); |
183 | 183 | ||
@@ -257,7 +257,7 @@ static void draw_screen(struct screen *display, char *title, | |||
257 | display->putsxy(text_x, text_top, buf); | 257 | display->putsxy(text_x, text_top, buf); |
258 | /* Draw color value */ | 258 | /* Draw color value */ |
259 | snprintf(buf, 3, "%02d", rgb->rgb_val[i]); | 259 | snprintf(buf, 3, "%02d", rgb->rgb_val[i]); |
260 | vp.flags |= VP_FLAG_IS_RTL; | 260 | vp.flags |= VP_FLAG_ALIGN_RIGHT; |
261 | display->putsxy(text_x, text_top, buf); | 261 | display->putsxy(text_x, text_top, buf); |
262 | 262 | ||
263 | /* Draw scrollbar */ | 263 | /* Draw scrollbar */ |
@@ -278,7 +278,7 @@ static void draw_screen(struct screen *display, char *title, | |||
278 | /* Format RGB: #rrggbb */ | 278 | /* Format RGB: #rrggbb */ |
279 | snprintf(buf, sizeof(buf), str(LANG_COLOR_RGB_VALUE), | 279 | snprintf(buf, sizeof(buf), str(LANG_COLOR_RGB_VALUE), |
280 | rgb->red, rgb->green, rgb->blue); | 280 | rgb->red, rgb->green, rgb->blue); |
281 | vp.flags |= VP_FLAG_CENTER_ALIGN; | 281 | vp.flags |= VP_FLAG_ALIGN_CENTER; |
282 | if (display->depth >= 16) | 282 | if (display->depth >= 16) |
283 | { | 283 | { |
284 | /* Display color swatch on color screens only */ | 284 | /* Display color swatch on color screens only */ |
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index e7c9f4fb52..bd6199c5e9 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -706,7 +706,7 @@ static int parse_viewport(const char *wps_bufptr, | |||
706 | if (!(ptr = viewport_parse_viewport(vp, screen, ptr, '|'))) | 706 | if (!(ptr = viewport_parse_viewport(vp, screen, ptr, '|'))) |
707 | return WPS_ERROR_INVALID_PARAM; | 707 | return WPS_ERROR_INVALID_PARAM; |
708 | 708 | ||
709 | vp->flags &= ~VP_FLAG_IS_RTL; /* ignore rright-to-left languages */ | 709 | vp->flags &= ~VP_FLAG_ALIGN_RIGHT; /* ignore right-to-left languages */ |
710 | /* Check for trailing | */ | 710 | /* Check for trailing | */ |
711 | if (*ptr != '|') | 711 | if (*ptr != '|') |
712 | return WPS_ERROR_INVALID_PARAM; | 712 | return WPS_ERROR_INVALID_PARAM; |
diff --git a/apps/gui/splash.c b/apps/gui/splash.c index aaa259c09d..4ddd22aba2 100644 --- a/apps/gui/splash.c +++ b/apps/gui/splash.c | |||
@@ -147,7 +147,7 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) | |||
147 | if (vp.height > screen->lcdheight) | 147 | if (vp.height > screen->lcdheight) |
148 | vp.height = screen->lcdheight; | 148 | vp.height = screen->lcdheight; |
149 | 149 | ||
150 | vp.flags |= VP_FLAG_CENTER_ALIGN; | 150 | vp.flags |= VP_FLAG_ALIGN_CENTER; |
151 | #if LCD_DEPTH > 1 | 151 | #if LCD_DEPTH > 1 |
152 | if (screen->depth > 1) | 152 | if (screen->depth > 1) |
153 | { | 153 | { |
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index 8275165178..5aac200157 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c | |||
@@ -175,7 +175,7 @@ static void gui_statusbar_init(struct gui_statusbar * bar) | |||
175 | 175 | ||
176 | #define GET_RECT(vp, vals,display) do { \ | 176 | #define GET_RECT(vp, vals,display) do { \ |
177 | viewport_set_fullscreen(&(vp), (display)->screen_type); \ | 177 | viewport_set_fullscreen(&(vp), (display)->screen_type); \ |
178 | (vp).flags &= ~VP_FLAG_IS_RTL; \ | 178 | (vp).flags &= ~VP_FLAG_ALIGN_RIGHT; \ |
179 | (vp).height = STATUSBAR_HEIGHT; \ | 179 | (vp).height = STATUSBAR_HEIGHT; \ |
180 | (vp).x = STATUSBAR_X_POS; \ | 180 | (vp).x = STATUSBAR_X_POS; \ |
181 | if ((vals) != STATUSBAR_BOTTOM) \ | 181 | if ((vals) != STATUSBAR_BOTTOM) \ |
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index d5f45b3382..fdd06bdc46 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c | |||
@@ -369,7 +369,7 @@ static void set_default_align_flags(struct viewport *vp) | |||
369 | vp->flags &= ~VP_FLAG_ALIGNMENT_MASK; | 369 | vp->flags &= ~VP_FLAG_ALIGNMENT_MASK; |
370 | #ifndef __PCTOOL__ | 370 | #ifndef __PCTOOL__ |
371 | if (UNLIKELY(lang_is_rtl())) | 371 | if (UNLIKELY(lang_is_rtl())) |
372 | vp->flags |= VP_FLAG_IS_RTL; | 372 | vp->flags |= VP_FLAG_ALIGN_RIGHT; |
373 | #endif | 373 | #endif |
374 | } | 374 | } |
375 | 375 | ||