summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/color_picker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/color_picker.c b/apps/gui/color_picker.c
index a66b131560..03096e5589 100644
--- a/apps/gui/color_picker.c
+++ b/apps/gui/color_picker.c
@@ -259,9 +259,9 @@ static void draw_screen(struct screen *display, char *title,
259 display->putsxy(text_x, text_top, buf); 259 display->putsxy(text_x, text_top, buf);
260 /* Draw color value */ 260 /* Draw color value */
261 if (display->depth >= 24) 261 if (display->depth >= 24)
262 snprintf(buf, 4, "%03d", rgb->rgb_val[i]); 262 snprintf(buf, 4, "%03d", rgb->rgb_val[i] & 0xFF);
263 else 263 else
264 snprintf(buf, 3, "%02d", rgb->rgb_val[i]); 264 snprintf(buf, 3, "%02d", rgb->rgb_val[i] & 0x3F);
265 vp.flags |= VP_FLAG_ALIGN_RIGHT; 265 vp.flags |= VP_FLAG_ALIGN_RIGHT;
266 display->putsxy(text_x, text_top, buf); 266 display->putsxy(text_x, text_top, buf);
267 267