From 7a35751f0fcda33fec753174c9b14dfbb3296322 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Wed, 14 Dec 2016 20:25:08 +0900 Subject: [PATCH] [SDL_Tizen] Change SDL_Window size in full screen Change-Id: I3105e95f677c5bddc6ef474563beae61b04aed09 Signed-off-by: huiyu.eun --- src/video/tizen/SDL_tizenwindow.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/video/tizen/SDL_tizenwindow.c b/src/video/tizen/SDL_tizenwindow.c index adc1e65..80f85d1 100755 --- a/src/video/tizen/SDL_tizenwindow.c +++ b/src/video/tizen/SDL_tizenwindow.c @@ -349,7 +349,7 @@ _tizen_setwindowsize(SDL_Window *window) if (!wind->window) { return; } -// ecore_wl_window_update_size(wind->window, window->w, window->h); + ecore_wl_window_update_size(wind->window, window->w, window->h); } void @@ -451,7 +451,7 @@ _tizen_cb_window_configure(void *data, int type EINA_UNUSED, void *event) if (wind->rotation_supported == 0){ return ECORE_CALLBACK_PASS_ON; } - +/* SDL_Log( "configure notify window: %p, ecore_wl_window: %p\n", window, ew); ecore_wl_window_geometry_get(ew, &nx, &ny, &nw, &nh); @@ -465,6 +465,7 @@ _tizen_cb_window_configure(void *data, int type EINA_UNUSED, void *event) if ((window->w != nw) || (window->h != nh)) { _tizen_setwindowsize(window); } + */ return ECORE_CALLBACK_PASS_ON; } @@ -521,11 +522,15 @@ _tizen_cb_event_window_rotate(void *data, int type EINA_UNUSED, void *event) SDL_Log("[SDL_Size] * _tizen_cb_event_window_rotate aw ah : %d, %d", aw, ah); - if(wind->rotation == 90 || wind->rotation == 270) + if(wind->rotation == 90 || wind->rotation == 270) { SDL_SetWindowSize(window, ah, aw); - else + window->w = ah;//for Fullscreen + window->h = aw; + } else { SDL_SetWindowSize(window, aw, ah);//->call wl_egl_window_resize() - + window->w = aw;//for Fullscreen + window->h = ah; + } SDL_Log("[SDL_Size] * _tizen_cb_event_window_rotate aw ah : %d, %d", window->w, window->h); } -- 2.7.4