/* Updates the size of the native window using the geometry of the SDL window.  */
static void setWindowSize(_THIS, SDL_Window *window)
/* Updates the size of the native window using the geometry of the SDL window.  */
static void setWindowSize(_THIS, SDL_Window *window)
{
    window_impl_t   *impl = (window_impl_t *)window->driverdata;
    int             size[2];
    size[0] = window->w;
    size[1] = window->h;
    screen_set_window_property_iv(impl->window, SCREEN_PROPERTY_SIZE, size);
    screen_set_window_property_iv(impl->window, SCREEN_PROPERTY_SOURCE_SIZE,
                                  size);
}