mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-23 21:55:12 +00:00
code style: wrap a single-statement if in braces.
This commit is contained in:
parent
3fbd21ce40
commit
6fbde875e2
|
@ -472,9 +472,9 @@ WIN_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
||||||
|
|
||||||
/* If we have a parent window, get the Instance and HWND for them
|
/* If we have a parent window, get the Instance and HWND for them
|
||||||
* so that our little dialog gets exclusive focus at all times. */
|
* so that our little dialog gets exclusive focus at all times. */
|
||||||
if (messageboxdata->window)
|
if (messageboxdata->window) {
|
||||||
ParentWindow = ((SDL_WindowData*)messageboxdata->window->driverdata)->hwnd;
|
ParentWindow = ((SDL_WindowData*)messageboxdata->window->driverdata)->hwnd;
|
||||||
|
}
|
||||||
|
|
||||||
which = DialogBoxIndirect(NULL, (DLGTEMPLATE*)dialog->lpDialog, ParentWindow, (DLGPROC)MessageBoxDialogProc);
|
which = DialogBoxIndirect(NULL, (DLGTEMPLATE*)dialog->lpDialog, ParentWindow, (DLGPROC)MessageBoxDialogProc);
|
||||||
*buttonid = buttons[which].buttonid;
|
*buttonid = buttons[which].buttonid;
|
||||||
|
|
Loading…
Reference in a new issue