mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
SDL:
On Windows, have SDL_ShowWindow() not activate the window if the window has the WS_EX_NOACTIVATE window flag.
This commit is contained in:
parent
4d78a99544
commit
6a0ef0cdbc
@ -546,8 +546,17 @@ WIN_GetWindowBordersSize(_THIS, SDL_Window * window, int *top, int *left, int *b
|
|||||||
void
|
void
|
||||||
WIN_ShowWindow(_THIS, SDL_Window * window)
|
WIN_ShowWindow(_THIS, SDL_Window * window)
|
||||||
{
|
{
|
||||||
HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
|
DWORD style;
|
||||||
ShowWindow(hwnd, SW_SHOW);
|
HWND hwnd;
|
||||||
|
int nCmdShow;
|
||||||
|
|
||||||
|
hwnd = ( (SDL_WindowData *)window->driverdata )->hwnd;
|
||||||
|
nCmdShow = SW_SHOW;
|
||||||
|
style = GetWindowLong(hwnd, GWL_EXSTYLE);
|
||||||
|
if ( style & WS_EX_NOACTIVATE )
|
||||||
|
nCmdShow = SW_SHOWNOACTIVATE;
|
||||||
|
|
||||||
|
ShowWindow(hwnd, nCmdShow );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user