diff options
author | Johannes Schickel | 2015-01-24 23:42:12 +0100 |
---|---|---|
committer | Johannes Schickel | 2015-01-25 18:57:38 +0100 |
commit | 3a2db0135d93b5f12fd42f04db3b6ad9d40834d3 (patch) | |
tree | 5b021b6b70148fb60bcaa08be7f68b427b730d09 /backends/platform/sdl | |
parent | 4e1ffc9434f771d3f43e66104adeea9e0166123c (diff) | |
download | scummvm-rg350-3a2db0135d93b5f12fd42f04db3b6ad9d40834d3.tar.gz scummvm-rg350-3a2db0135d93b5f12fd42f04db3b6ad9d40834d3.tar.bz2 scummvm-rg350-3a2db0135d93b5f12fd42f04db3b6ad9d40834d3.zip |
SDL: Refactor WM specific functionality into SdlGraphicsManager.
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 4dc5929dab..6a2643b048 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -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); } |