add window icon

This commit is contained in:
Arisotura
2020-05-20 03:01:09 +02:00
parent 5ed87a634a
commit 700b1a8b9d
3 changed files with 17 additions and 8 deletions

View File

@ -978,6 +978,7 @@ int main(int argc, char** argv)
Platform::Init(argc, argv);
QApplication melon(argc, argv);
melon.setWindowIcon(QIcon(":/melon-icon"));
// http://stackoverflow.com/questions/14543333/joystick-wont-work-using-sdl
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");