From 38e70df17b68b19d00114ca22dd3f6b20ed787cb Mon Sep 17 00:00:00 2001 From: LiquidFenrir Date: Wed, 4 Apr 2018 11:40:38 +0200 Subject: [PATCH] Forgot to update the bottom screen when there's no entry (fix #144) --- source/draw.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/draw.c b/source/draw.c index 733b3b9..edfd18b 100644 --- a/source/draw.c +++ b/source/draw.c @@ -408,10 +408,11 @@ void draw_interface(Entry_List_s* list, Instructions_s instructions) pp2d_draw_on(GFX_BOTTOM, GFX_LEFT); - pp2d_draw_texture_blend(TEXTURE_EXIT, 320-120, 0, COLOR_WHITE); - pp2d_draw_texture_blend(TEXTURE_DOWNLOAD, 320-96, 0, COLOR_WHITE); - for(int i = 0; i < MODE_AMOUNT; i++) - pp2d_draw_textf(320-(24*(i+1))+2.5, -3, 1, 1, COLOR_WHITE, "%c", mode_string[i][0]); + pp2d_draw_texture_blend(TEXTURE_DOWNLOAD, 320-120, 0, COLOR_WHITE); + pp2d_draw_texture_blend(TEXTURE_BROWSE, 320-96, 0, COLOR_WHITE); + pp2d_draw_texture_blend(TEXTURE_EXIT, 320-72, 0, COLOR_WHITE); + pp2d_draw_texture_blend(TEXTURE_PREVIEW_ICON, 320-48, 0, COLOR_WHITE); + pp2d_draw_textf(320-24+2.5, -3, 1, 1, COLOR_WHITE, "%c", mode_string[!list->mode][0]); return; }