mirror of
https://github.com/BernardoGiordano/Checkpoint
synced 2024-12-12 01:52:29 +00:00
Fix #178
This commit is contained in:
parent
2a40325bcb
commit
b0634ce987
2 changed files with 6 additions and 3 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include "SDL_FontCache.h"
|
||||
#include "colors.hpp"
|
||||
|
||||
bool SDLH_Init(void);
|
||||
void SDLH_Exit(void);
|
||||
|
|
|
@ -54,6 +54,7 @@ bool SDLH_Init(void)
|
|||
SDLH_LoadImage(&s_flag, "romfs:/flag.png");
|
||||
SDLH_LoadImage(&s_star, "romfs:/star.png");
|
||||
SDLH_LoadImage(&s_checkbox, "romfs:/checkbox.png");
|
||||
SDL_SetTextureColorMod(s_checkbox, COLOR_GREY_BG.r, COLOR_GREY_BG.g, COLOR_GREY_BG.b);
|
||||
|
||||
// const int mix_flags = MIX_INIT_OGG;
|
||||
// if ((Mix_Init(mix_flags) & mix_flags) != mix_flags)
|
||||
|
@ -186,6 +187,7 @@ void SDLH_DrawIcon(std::string icon, int x, int y)
|
|||
t = s_flag;
|
||||
} else if (icon.compare("checkbox") == 0) {
|
||||
t = s_checkbox;
|
||||
SDLH_DrawRect(x + 8, y + 8, 24, 24, COLOR_WHITE);
|
||||
} else if (icon.compare("star") == 0) {
|
||||
t = s_star;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue