void
Tizen_GLES_SwapWindow(_THIS, SDL_Window *window)
{
+ SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
SDL_WindowData* wdata = (SDL_WindowData*)window->driverdata;
-
if (wdata->received_rotation == 1) {
+ _tizen_rotate_update(wdata);
ecore_wl_window_rotation_change_done_send(wdata->window);
wdata->received_rotation = 0;
}
-
- SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
}
int
output = ecore_wl_window_output_find(wind->window);
if (output != ev->output) return ECORE_CALLBACK_PASS_ON;
- _tizen_rotate_update(wind);
+ wind->received_rotation = 1;
+
return ECORE_CALLBACK_PASS_ON;
}
if(!wind) return ECORE_CALLBACK_PASS_ON;
- _tizen_rotate_update(wind);
+ wind->received_rotation = 1;
return ECORE_CALLBACK_PASS_ON;
}
_tizen_send_rotation_event(window, wind->rotation);
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_SIZE_CHANGED, window->w, window->h);
- wind->received_rotation = 1;
}
//Set Screen Rotation
wind->output_rotation = screen_rotation;
-
if(wind->support_pre_rotation)
ecore_wl_window_buffer_transform_set(wind->window, wind->output_rotation / 90);
+ ecore_wl_window_rotation_set(wind->window, wind->rotation);
+
int rotation = (wind->output_rotation + wind->rotation) % 360;
_tizen_rotation_do(wind, rotation);
}
if (wind->rotation != ev->angle) {
/* set ecore_wayland window rotation */
wind->rotation = ev->angle;
- ecore_wl_window_rotation_set(wind->window, wind->rotation);
- _tizen_rotate_update(wind);
+ wind->received_rotation = 1;
}
return ECORE_CALLBACK_PASS_ON;