diff options
| author | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-11 20:15:22 +0000 |
|---|---|---|
| committer | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-11 20:15:22 +0000 |
| commit | d5b076b64a8a3abd55fca0e9db7b13c6024bdfa3 (patch) | |
| tree | 59ceb57c1f2633b8fd8f6458463499bc776a7930 /apps/gui | |
| parent | 891c446302d341d2e8f6f2da54343589bf46d0e4 (diff) | |
| download | rockbox-d5b076b64a8a3abd55fca0e9db7b13c6024bdfa3.zip rockbox-d5b076b64a8a3abd55fca0e9db7b13c6024bdfa3.tar.gz rockbox-d5b076b64a8a3abd55fca0e9db7b13c6024bdfa3.tar.bz2 rockbox-d5b076b64a8a3abd55fca0e9db7b13c6024bdfa3.tar.xz | |
RTL: Cosmetic changes, no functional change - Rename constants
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23117 a1c6a512-1295-4272-9138-f99709370657
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 75c0612..09d8612 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, /* Draw title string */ set_drawinfo(display, DRMODE_SOLID, text_color, background_color); - vp.flags |= VP_FLAG_CENTER_ALIGN; + vp.flags |= VP_FLAG_ALIGN_CENTER; display->getstringsize(title, NULL, &y); display->putsxy(0, MARGIN_TOP, title); @@ -257,7 +257,7 @@ static void draw_screen(struct screen *display, char *title, display->putsxy(text_x, text_top, buf); /* Draw color value */ snprintf(buf, 3, "%02d", rgb->rgb_val[i]); - vp.flags |= VP_FLAG_IS_RTL; + vp.flags |= VP_FLAG_ALIGN_RIGHT; display->putsxy(text_x, text_top, buf); /* Draw scrollbar */ @@ -278,7 +278,7 @@ static void draw_screen(struct screen *display, char *title, /* Format RGB: #rrggbb */ snprintf(buf, sizeof(buf), str(LANG_COLOR_RGB_VALUE), rgb->red, rgb->green, rgb->blue); - vp.flags |= VP_FLAG_CENTER_ALIGN; + vp.flags |= VP_FLAG_ALIGN_CENTER; if (display->depth >= 16) { /* 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 e7c9f4f..bd6199c 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, if (!(ptr = viewport_parse_viewport(vp, screen, ptr, '|'))) return WPS_ERROR_INVALID_PARAM; - vp->flags &= ~VP_FLAG_IS_RTL; /* ignore rright-to-left languages */ + vp->flags &= ~VP_FLAG_ALIGN_RIGHT; /* ignore right-to-left languages */ /* Check for trailing | */ if (*ptr != '|') return WPS_ERROR_INVALID_PARAM; diff --git a/apps/gui/splash.c b/apps/gui/splash.c index aaa259c..4ddd22a 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) if (vp.height > screen->lcdheight) vp.height = screen->lcdheight; - vp.flags |= VP_FLAG_CENTER_ALIGN; + vp.flags |= VP_FLAG_ALIGN_CENTER; #if LCD_DEPTH > 1 if (screen->depth > 1) { diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index 8275165..5aac200 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c @@ -175,7 +175,7 @@ static void gui_statusbar_init(struct gui_statusbar * bar) #define GET_RECT(vp, vals,display) do { \ viewport_set_fullscreen(&(vp), (display)->screen_type); \ - (vp).flags &= ~VP_FLAG_IS_RTL; \ + (vp).flags &= ~VP_FLAG_ALIGN_RIGHT; \ (vp).height = STATUSBAR_HEIGHT; \ (vp).x = STATUSBAR_X_POS; \ if ((vals) != STATUSBAR_BOTTOM) \ diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index d5f45b3..fdd06bd 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -369,7 +369,7 @@ static void set_default_align_flags(struct viewport *vp) vp->flags &= ~VP_FLAG_ALIGNMENT_MASK; #ifndef __PCTOOL__ if (UNLIKELY(lang_is_rtl())) - vp->flags |= VP_FLAG_IS_RTL; + vp->flags |= VP_FLAG_ALIGN_RIGHT; #endif } |