Add log for checking the size of screen 39/210539/5
authorSunghyun kim <scholb.kim@samsung.com>
Mon, 22 Jul 2019 07:21:06 +0000 (16:21 +0900)
committersunghyun kim <scholb.kim@samsung.com>
Wed, 24 Jul 2019 03:51:33 +0000 (03:51 +0000)
Change-Id: Idbc0a86c78258818e30717ab44d570f9f11ed57c

dali/internal/window-system/common/window-render-surface.cpp
dali/internal/window-system/tizen-wayland/ecore-wl2/window-system-ecore-wl2.cpp

index 82dccec..3a316f8 100644 (file)
@@ -234,7 +234,10 @@ void WindowRenderSurface::CreateSurface()
   // Check rotation capability
   mRotationSupported = mWindowBase->IsEglWindowRotationSupported();
 
-  DALI_LOG_INFO( gWindowRenderSurfaceLogFilter, Debug::Verbose, "WindowRenderSurface::CreateSurface: w = %d h = %d angle = %d screen rotation = %d\n", mPositionSize.width, mPositionSize.height, mRotationAngle, mScreenRotationAngle );
+  int screenWidth, screenHeight;
+  WindowSystem::GetScreenSize( screenWidth, screenHeight );
+  DALI_LOG_RELEASE_INFO("WindowRenderSurface::CreateSurface: w = %d h = %d screenWidth = %d screenHeight = %d angle = %d screen rotation = %d\n",
+      mPositionSize.width, mPositionSize.height, screenWidth, screenHeight, mRotationAngle, mScreenRotationAngle );
 }
 
 void WindowRenderSurface::DestroySurface()
index 2c733db..4974602 100644 (file)
@@ -50,6 +50,8 @@ void GetScreenSize( int& width, int& height )
   if( display )
   {
     ecore_wl2_display_screen_size_get( display, &width, &height );
+    DALI_ASSERT_ALWAYS((width>0) && "screen width is 0");
+    DALI_ASSERT_ALWAYS((height>0) && "screen height is 0");
   }
 }