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

@@ -80,6 +80,7 @@ void load_theme_preview(Theme_s *theme)
theme->has_preview = true;
pp2d_load_texture_memory(TEXTURE_PREVIEW, image, (u32)width, (u32)height);
theme->preview_offset = (width-400)/2;
}
free(image);