summaryrefslogtreecommitdiff
path: root/apps/gui/icon.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/icon.c')
-rw-r--r--apps/gui/icon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/icon.c b/apps/gui/icon.c
index 968d83548f..c8ac48de92 100644
--- a/apps/gui/icon.c
+++ b/apps/gui/icon.c
@@ -103,7 +103,7 @@ void screen_put_icon_with_offset(struct screen * display,
103 int screen = display->screen_type; 103 int screen = display->screen_type;
104 display->getstringsize((unsigned char *)"M", &width, &height); 104 display->getstringsize((unsigned char *)"M", &width, &height);
105 xpos = x*ICON_WIDTH(screen) + off_x; 105 xpos = x*ICON_WIDTH(screen) + off_x;
106 ypos = y*height + display->getymargin() + off_y; 106 ypos = y*height + off_y;
107 107
108 if ( height > ICON_HEIGHT(screen) )/* center the cursor */ 108 if ( height > ICON_HEIGHT(screen) )/* center the cursor */
109 ypos += (height - ICON_HEIGHT(screen)) / 2; 109 ypos += (height - ICON_HEIGHT(screen)) / 2;