projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "[Tizen] Add check code with orientation in creating egl window."
[platform/core/uifw/dali-adaptor.git]
/
dali
/
internal
/
window-system
/
tizen-wayland
/
ecore-wl2
/
window-base-ecore-wl2.cpp
diff --git
a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp
b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp
index
8c2c04a
..
9624c20
100755
(executable)
--- a/
dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp
+++ b/
dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp
@@
-760,6
+760,11
@@
void WindowBaseEcoreWl2::Initialize( PositionSize positionSize, Any surface, boo
CreateWindow( positionSize );
}
CreateWindow( positionSize );
}
+ for( int i = 0; i < 4; ++i )
+ {
+ mAvaiableWindowOrientations[i] = 0;
+ }
+
mWlSurface = ecore_wl2_window_surface_get( mEcoreWindow );
SetTransparency( isTransparent );
mWlSurface = ecore_wl2_window_surface_get( mEcoreWindow );
SetTransparency( isTransparent );
@@
-1562,14
+1567,14
@@
void WindowBaseEcoreWl2::Activate()
void WindowBaseEcoreWl2::SetAvailableAnlges( const std::vector< int >& angles )
{
void WindowBaseEcoreWl2::SetAvailableAnlges( const std::vector< int >& angles )
{
- int rotations[4] = { 0 };
DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl2::SetAvailableAnlges, angle's count: %d, angles\n", angles.size() );
DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl2::SetAvailableAnlges, angle's count: %d, angles\n", angles.size() );
- for( std::size_t i = 0; i < angles.size(); ++i )
+ std::size_t size = angles.size();
+ for( std::size_t i = 0; i < size; ++i )
{
{
-
ro
tations[i] = static_cast< int >( angles[i] );
- DALI_LOG_RELEASE_INFO( "%d ",
ro
tations[i] );
+
mAvaiableWindowOrien
tations[i] = static_cast< int >( angles[i] );
+ DALI_LOG_RELEASE_INFO( "%d ",
mAvaiableWindowOrien
tations[i] );
}
}
- ecore_wl2_window_available_rotations_set( mEcoreWindow,
rotations, angles.size()
);
+ ecore_wl2_window_available_rotations_set( mEcoreWindow,
mAvaiableWindowOrientations, size
);
}
void WindowBaseEcoreWl2::SetPreferredAngle( int angle )
}
void WindowBaseEcoreWl2::SetPreferredAngle( int angle )