diff --git a/backends/graphics/graphics.h b/backends/graphics/graphics.h index 3b50f72b60a..91d74d4b4cc 100644 --- a/backends/graphics/graphics.h +++ b/backends/graphics/graphics.h @@ -59,7 +59,7 @@ public: // ResidualVM specific method virtual void launcherInitSize(uint w, uint h) = 0; // ResidualVM specific method - virtual Graphics::PixelBuffer setupScreen(int screenW, int screenH, bool fullscreen, bool accel3d) = 0; + virtual Graphics::PixelBuffer setupScreen(uint screenW, uint screenH, bool fullscreen, bool accel3d) = 0; virtual int16 getHeight() = 0; virtual int16 getWidth() = 0; diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index 1869c2173c8..eff4f8fdb5d 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -160,7 +160,7 @@ void SurfaceSdlGraphicsManager::launcherInitSize(uint w, uint h) { setupScreen(w, h, false, false); } -Graphics::PixelBuffer SurfaceSdlGraphicsManager::setupScreen(int screenW, int screenH, bool fullscreen, bool accel3d) { +Graphics::PixelBuffer SurfaceSdlGraphicsManager::setupScreen(uint screenW, uint screenH, bool fullscreen, bool accel3d) { uint32 sdlflags; int bpp; diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.h b/backends/graphics/surfacesdl/surfacesdl-graphics.h index 837831b028b..f8b37219d78 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.h +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.h @@ -74,7 +74,7 @@ public: #endif virtual void initSize(uint w, uint h, const Graphics::PixelFormat *format = NULL); virtual void launcherInitSize(uint w, uint h); // ResidualVM specific method - Graphics::PixelBuffer setupScreen(int screenW, int screenH, bool fullscreen, bool accel3d); // ResidualVM specific method + Graphics::PixelBuffer setupScreen(uint screenW, uint screenH, bool fullscreen, bool accel3d); // ResidualVM specific method virtual int getScreenChangeID() const { return _screenChangeCount; } virtual void beginGFXTransaction(); diff --git a/backends/modular-backend.cpp b/backends/modular-backend.cpp index 26c980f350d..eab6929d254 100644 --- a/backends/modular-backend.cpp +++ b/backends/modular-backend.cpp @@ -104,7 +104,7 @@ void ModularBackend::launcherInitSize(uint w, uint h) { } // ResidualVM specific method -Graphics::PixelBuffer ModularBackend::setupScreen(int screenW, int screenH, bool fullscreen, bool accel3d) { +Graphics::PixelBuffer ModularBackend::setupScreen(uint screenW, uint screenH, bool fullscreen, bool accel3d) { return _graphicsManager->setupScreen(screenW, screenH, fullscreen, accel3d); } diff --git a/backends/modular-backend.h b/backends/modular-backend.h index 9d0266459bc..cd6b211678f 100644 --- a/backends/modular-backend.h +++ b/backends/modular-backend.h @@ -73,7 +73,7 @@ public: #endif virtual void initSize(uint width, uint height, const Graphics::PixelFormat *format = NULL); virtual void launcherInitSize(uint w, uint h); // ResidualVM specific method - virtual Graphics::PixelBuffer setupScreen(int screenW, int screenH, bool fullscreen, bool accel3d); // ResidualVM specific method + virtual Graphics::PixelBuffer setupScreen(uint screenW, uint screenH, bool fullscreen, bool accel3d); // ResidualVM specific method virtual int getScreenChangeID() const; virtual void beginGFXTransaction(); diff --git a/backends/platform/android/android.h b/backends/platform/android/android.h index c889b7abb06..cbe5a69e232 100644 --- a/backends/platform/android/android.h +++ b/backends/platform/android/android.h @@ -303,10 +303,10 @@ public: // ResidualVM specific method virtual void launcherInitSize(uint w, uint h); bool lockMouse(bool lock); - Graphics::PixelBuffer setupScreen(int screenW, int screenH, bool fullscreen, bool accel3d) { + Graphics::PixelBuffer setupScreen(uint screenW, uint screenH, bool fullscreen, bool accel3d) { return setupScreen(screenW, screenH, fullscreen, accel3d, true); } - Graphics::PixelBuffer setupScreen(int screenW, int screenH, bool fullscreen, bool accel3d, bool isGame); + Graphics::PixelBuffer setupScreen(uint screenW, uint screenH, bool fullscreen, bool accel3d, bool isGame); }; #endif diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index 45b148a8ac7..89e014d5c52 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -457,7 +457,7 @@ void OSystem_Android::copyRectToScreen(const void *buf, int pitch, // ResidualVM specific method -Graphics::PixelBuffer OSystem_Android::setupScreen(int screenW, int screenH, bool fullscreen, bool accel3d, bool isGame) { +Graphics::PixelBuffer OSystem_Android::setupScreen(uint screenW, uint screenH, bool fullscreen, bool accel3d, bool isGame) { _opengl = accel3d; initViewport(); diff --git a/common/system.h b/common/system.h index 874a1fdbed6..c3d4f1165d2 100644 --- a/common/system.h +++ b/common/system.h @@ -664,7 +664,7 @@ public: * @param fullscreen the new screen will be displayed in fullscreeen mode */ - virtual Graphics::PixelBuffer setupScreen(int screenW, int screenH, bool fullscreen, bool accel3d) = 0; + virtual Graphics::PixelBuffer setupScreen(uint screenW, uint screenH, bool fullscreen, bool accel3d) = 0; /** * Returns the currently set virtual screen height.