summaryrefslogtreecommitdiff
path: root/apps/gui/color_picker.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/color_picker.c')
-rw-r--r--apps/gui/color_picker.c6
1 files changed, 3 insertions, 3 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 */