summaryrefslogtreecommitdiff
path: root/LayerManagerCommands
diff options
context:
space:
mode:
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>2011-12-01 13:41:07 +0100
committerMichael Schuldt <michael.schuldt@bmw-carit.de>2011-12-05 08:35:17 +0100
commit157ae8173fc4459e2c8db6ab6704aaf3c3cc9d54 (patch)
tree3a1611b94e8a34046b279cca4ebebb20117c2dcf /LayerManagerCommands
parent40e1928f7657d54a10904b73447de9ecd7b95e26 (diff)
downloadlayer_management-157ae8173fc4459e2c8db6ab6704aaf3c3cc9d54.tar.gz
fix: SurfaceSetNativeContent does not initialize Source and Destination Regions
Diffstat (limited to 'LayerManagerCommands')
-rw-r--r--LayerManagerCommands/src/SurfaceSetNativeContentCommand.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/LayerManagerCommands/src/SurfaceSetNativeContentCommand.cpp b/LayerManagerCommands/src/SurfaceSetNativeContentCommand.cpp
index b03d60f..8577f6f 100644
--- a/LayerManagerCommands/src/SurfaceSetNativeContentCommand.cpp
+++ b/LayerManagerCommands/src/SurfaceSetNativeContentCommand.cpp
@@ -43,8 +43,10 @@ ExecutionResult SurfaceSetNativeContentCommand::execute(ICommandExecutor* execut
surface->setPixelFormat(m_pixelformat);
surface->OriginalSourceWidth = m_originalWidth;
surface->OriginalSourceHeight = m_originalHeight;
- surface->setDestinationRegion(Rectangle(0, 0, m_originalWidth, m_originalHeight));
- surface->setSourceRegion(Rectangle(0, 0, m_originalWidth, m_originalHeight));
+
+ // has to be set by application
+ //surface->setDestinationRegion(Rectangle(0, 0, m_originalWidth, m_originalHeight));
+ //surface->setSourceRegion(Rectangle(0, 0, m_originalWidth, m_originalHeight));
result = ExecutionSuccessRedraw;
}