summaryrefslogtreecommitdiff
path: root/apps/gui/color_picker.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2008-06-28 21:02:43 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2008-06-28 21:02:43 +0000
commit4af5dd84a2d4fbe8133c258482a2c24e9fc7b058 (patch)
treed527b72867e04d358f1d8b128970c67cd3cc6497 /apps/gui/color_picker.c
parent1f045bcb1e6b54de62c5dbca413c8a6192743fa9 (diff)
fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17859 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/color_picker.c')
-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 4ac4fa7fff..8db9ba92f5 100644
--- a/apps/gui/color_picker.c
+++ b/apps/gui/color_picker.c
@@ -360,11 +360,11 @@ static int touchpad_slider(struct rgb_pick *rgb, int *selected_slider)
text_top = MARGIN_TOP + display->char_height + TITLE_MARGIN_BOTTOM + SELECTOR_TB_MARGIN;
slider_left = MARGIN_LEFT + SELECTOR_WIDTH + SELECTOR_LR_MARGIN +
max_label_width + SLIDER_MARGIN_LEFT;
- slider_width = display->width - slider_left - SLIDER_MARGIN_RIGHT -
+ slider_width = display->getwidth() - slider_left - SLIDER_MARGIN_RIGHT -
display->char_width*2 - SELECTOR_LR_MARGIN - SELECTOR_WIDTH -
MARGIN_RIGHT;
display_three_rows =
- display->height >= MARGIN_TOP +
+ display->getheight() >= MARGIN_TOP +
display->char_height*4 + /* Title + 3 sliders */
TITLE_MARGIN_BOTTOM +
SELECTOR_TB_MARGIN*6 + /* 2 margins/slider */