Set surface source rectanglge on CONFIGURED event.
authorBocklage, Jens <Jens_Bocklage@mentor.com>
Thu, 17 Nov 2016 08:09:11 +0000 (09:09 +0100)
committerBocklage, Jens <Jens_Bocklage@mentor.com>
Thu, 17 Nov 2016 08:09:11 +0000 (09:09 +0100)
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
WindowManager/src/windowmanager.cpp

index 25d971a..054c43c 100644 (file)
@@ -379,6 +379,17 @@ void WindowManager::surfaceCallbackFunction_non_static(t_ilm_surface surface,
     if (ILM_NOTIFICATION_CONFIGURED & mask)
     {
         qDebug("ILM_NOTIFICATION_CONFIGURED");
+        qDebug("  surfaceProperties %d", surface);
+        qDebug("    surfaceProperties.origSourceWidth: %d", surfaceProperties->origSourceWidth);
+        qDebug("    surfaceProperties.origSourceHeight: %d", surfaceProperties->origSourceHeight);
+
+        ilm_surfaceSetSourceRectangle(surface,
+                                      0,
+                                      0,
+                                      surfaceProperties->origSourceWidth,
+                                      surfaceProperties->origSourceHeight);
+
+        ilm_commitChanges();
         updateScreen();
     }
 }