critical error
texrg opened this issue · 1 comments
On fedora x86
./example1
terminate called after throwing an instance of 'std::runtime_error'
what(): Could not open image directory!
Aborted (zrzut pamięci)
compiling with some warning
In member function ‘SDL_Color sdlgui::Color::toSdlColor() const’:
/home/sdlgui/common.cpp:82:24: warning: narrowing conversion of ‘(((float)((const sdlgui::Color*)this)->sdlgui::Color::r()) * (float)255)’ from ‘float’ to ‘Uint8’ {aka ‘unsigned char’} inside { } [-Wnarrowing]
SDL_Color color{ r() * 255, g() * 255, b() * 255, a() * 255 };
~~~~^~~~~
/home/sdlgui/common.cpp:82:35: warning: narrowing conversion of ‘(((float)((const sdlgui::Color*)this)->sdlgui::Color::g()) * (float)255)’ from ‘float’ to ‘Uint8’ {aka ‘unsigned char’} inside { } [-Wnarrowing]
SDL_Color color{ r() * 255, g() * 255, b() * 255, a() * 255 };
~~~~^~~~~
Hi, sorry, hve no linux for test now, seems you run app from another folder when icons placed