previews overhaul (#13)

* allow quitting if there are no themes or splashes

* load preview only once if the user toggles more than once
This commit is contained in:
LiquidFenrir
2017-09-01 16:12:26 +02:00
committed by Alex Taber
parent 6ea94a76dc
commit 91ba5fed49
4 changed files with 21 additions and 13 deletions

View File

@@ -119,9 +119,9 @@ void draw_theme_interface(Theme_s * themes_list, int theme_count, int selected_t
if (current_theme.has_preview)
{
pp2d_begin_draw(GFX_TOP);
pp2d_draw_texture_part(TEXTURE_PREVIEW, 0, 0, 6, 0, 400, 240);
pp2d_draw_texture_part(TEXTURE_PREVIEW, 0, 0, preview_offset, 0, 400, 240);
pp2d_draw_on(GFX_BOTTOM);
pp2d_draw_texture_part(TEXTURE_PREVIEW, 0, 0, 46, 240, 320, 240);
pp2d_draw_texture_part(TEXTURE_PREVIEW, 0, 0, 40+preview_offset, 240, 320, 240);
}
}
else