SDL: Refactor WM specific functionality into SdlGraphicsManager.
This commit is contained in:
parent
4e1ffc9434
commit
3a2db0135d
10 changed files with 88 additions and 26 deletions
|
@ -314,7 +314,7 @@ void OSystem_SDL::setWindowCaption(const char *caption) {
|
|||
}
|
||||
}
|
||||
|
||||
SDL_WM_SetCaption(cap.c_str(), cap.c_str());
|
||||
dynamic_cast<SdlGraphicsManager *>(_graphicsManager)->setWindowCaption(cap);
|
||||
}
|
||||
|
||||
void OSystem_SDL::quit() {
|
||||
|
@ -477,8 +477,7 @@ void OSystem_SDL::setupIcon() {
|
|||
if (!sdl_surf) {
|
||||
warning("SDL_CreateRGBSurfaceFrom(icon) failed");
|
||||
}
|
||||
SDL_WM_SetIcon(sdl_surf, NULL);
|
||||
SDL_FreeSurface(sdl_surf);
|
||||
dynamic_cast<SdlGraphicsManager *>(_graphicsManager)->setWindowIcon(sdl_surf);
|
||||
free(icon);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue