diff options
Diffstat (limited to 'uisimulator/common')
-rw-r--r-- | uisimulator/common/lcd-playersim.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uisimulator/common/lcd-playersim.c b/uisimulator/common/lcd-playersim.c index ed2af8d605..6ea6b526aa 100644 --- a/uisimulator/common/lcd-playersim.c +++ b/uisimulator/common/lcd-playersim.c | |||
@@ -41,15 +41,15 @@ static int double_height = 1; | |||
41 | 41 | ||
42 | void lcd_print_icon(int x, int icon_line, bool enable, char **icon) | 42 | void lcd_print_icon(int x, int icon_line, bool enable, char **icon) |
43 | { | 43 | { |
44 | int row, col; | 44 | int row = 0, col = 0; /* shut up gcc */ |
45 | int y = (ICON_HEIGHT+(CHAR_HEIGHT*2+2)*CHAR_PIXEL) * icon_line; | 45 | int y = (ICON_HEIGHT+(CHAR_HEIGHT*2+2)*CHAR_PIXEL) * icon_line; |
46 | 46 | ||
47 | y += BORDER_MARGIN; | 47 | y += BORDER_MARGIN; |
48 | x += BORDER_MARGIN; | 48 | x += BORDER_MARGIN; |
49 | 49 | ||
50 | for (row = 0; icon[row]; row++) | 50 | for (; icon[row]; row++) |
51 | { | 51 | { |
52 | for (col = 0; icon[row][col]; col++) | 52 | for (; icon[row][col]; col++) |
53 | { | 53 | { |
54 | switch (icon[row][col]) | 54 | switch (icon[row][col]) |
55 | { | 55 | { |