Skip to content
Snippets Groups Projects
Commit a7ccb735 authored by BG Dummy's avatar BG Dummy
Browse files

added correct path for win32

parent a15d8733
Branches master
No related tags found
No related merge requests found
......@@ -44,12 +44,21 @@ MyApp::~MyApp() {
}
void MyApp::begin() {
#if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
text_ = create_image("./assets/ZX_Spectrum_character_set.png");
#else
text_ = create_image("../assets/ZX_Spectrum_character_set.png");
#endif
get_image_size(text_, &text_width_, &text_height_);
some_text_ = render_text("abc");
#if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
font15_ = create_font("./assets/fonts/FreeSans.ttf", 15, uwe::Colour::red());
#else
font15_ = create_font("../assets/fonts/FreeSans.ttf", 15, uwe::Colour::red());
#endif
}
void MyApp::update() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment