diff options
author | Paul Gilbert | 2016-03-20 20:53:01 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-20 20:53:01 -0400 |
commit | c382e179084d52656de7379822d89a5fe97ca988 (patch) | |
tree | 0ac6f963f248c3cd8ebfa820b7b4757bc2f2bbf5 | |
parent | 5336882555e4834bb5b93fddcf4231d3def9d028 (diff) | |
download | scummvm-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.cpp | 2 |
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) : |