From: huiyu.eun Date: Wed, 14 Dec 2016 11:25:08 +0000 (+0900) Subject: [SDL_Tizen] Change SDL_Window size in full screen X-Git-Tag: accepted/tizen/unified/20170407.190801~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F43%2F104843%2F1;p=platform%2Fupstream%2FSDL.git [SDL_Tizen] Change SDL_Window size in full screen Change-Id: I3105e95f677c5bddc6ef474563beae61b04aed09 Signed-off-by: huiyu.eun --- 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); }