mirror of https://github.com/encounter/SDL.git
SDL_os2video.c: silenced -Wempty-body warning, along with minor tidy-up.
This commit is contained in:
parent
531647efba
commit
2f21648528
|
@ -855,8 +855,9 @@ static int OS2_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
|
||||||
if (cbText != 0)
|
if (cbText != 0)
|
||||||
window->title = OS2_SysToUTF8(pszText);
|
window->title = OS2_SysToUTF8(pszText);
|
||||||
|
|
||||||
if (pszText != NULL)
|
if (pszText != NULL) {
|
||||||
SDL_stack_free(pszText);
|
SDL_stack_free(pszText);
|
||||||
|
}
|
||||||
|
|
||||||
/* Set SDL-window flags */
|
/* Set SDL-window flags */
|
||||||
window->flags &= ~(SDL_WINDOW_SHOWN | SDL_WINDOW_BORDERLESS |
|
window->flags &= ~(SDL_WINDOW_SHOWN | SDL_WINDOW_BORDERLESS |
|
||||||
|
@ -1666,18 +1667,17 @@ static SDL_VideoDevice *OS2VMAN_CreateDevice(int devindex)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Both bootstraps for DIVE and VMAN are uing same function OS2_CreateDevice().
|
/* DIVE and VMAN bootstraps both call the same OS2_CreateDevice() function.
|
||||||
* Video output system will be selected in OS2_VideoInit() by driver name. */
|
* Video output system will be selected in OS2_VideoInit() by driver name. */
|
||||||
VideoBootStrap OS2DIVE_bootstrap =
|
VideoBootStrap OS2DIVE_bootstrap =
|
||||||
{
|
{
|
||||||
OS2DRIVER_NAME_DIVE, "OS/2 video driver",
|
OS2DRIVER_NAME_DIVE, "OS/2 video driver",
|
||||||
OS2DIVE_CreateDevice
|
OS2DIVE_CreateDevice
|
||||||
};
|
};
|
||||||
|
|
||||||
VideoBootStrap OS2VMAN_bootstrap =
|
VideoBootStrap OS2VMAN_bootstrap =
|
||||||
{
|
{
|
||||||
OS2DRIVER_NAME_VMAN, "OS/2 video driver",
|
OS2DRIVER_NAME_VMAN, "OS/2 video driver",
|
||||||
OS2VMAN_CreateDevice
|
OS2VMAN_CreateDevice
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* SDL_VIDEO_DRIVER_OS2 */
|
#endif /* SDL_VIDEO_DRIVER_OS2 */
|
||||||
|
|
Loading…
Reference in New Issue