aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-20 20:53:01 -0400
committerPaul Gilbert2016-03-20 20:53:01 -0400
commitc382e179084d52656de7379822d89a5fe97ca988 (patch)
tree0ac6f963f248c3cd8ebfa820b7b4757bc2f2bbf5
parent5336882555e4834bb5b93fddcf4231d3def9d028 (diff)
downloadscummvm-rg350-c382e179084d52656de7379822d89a5fe97ca988.tar.gz
scummvm-rg350-c382e179084d52656de7379822d89a5fe97ca988.tar.bz2
scummvm-rg350-c382e179084d52656de7379822d89a5fe97ca988.zip
GRAPHICS: Fix create call in ManagedSurface constructor
-rw-r--r--graphics/managed_surface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/managed_surface.cpp b/graphics/managed_surface.cpp
index 9dcea12836..273b15de55 100644
--- a/graphics/managed_surface.cpp
+++ b/graphics/managed_surface.cpp
@@ -48,7 +48,7 @@ ManagedSurface::ManagedSurface(int width, int height) :
ManagedSurface::ManagedSurface(int width, int height, const Graphics::PixelFormat &pixelFormat) :
w(_innerSurface.w), h(_innerSurface.h), pitch(_innerSurface.pitch), format(_innerSurface.format),
_disposeAfterUse(DisposeAfterUse::NO), _owner(nullptr) {
- create(width, height, format);
+ create(width, height, pixelFormat);
}
ManagedSurface::ManagedSurface(ManagedSurface &surf, const Common::Rect &bounds) :