mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 16:20:39 +00:00
Implement set_visible function callback
This commit is contained in:
parent
cd49b89bbf
commit
aedd7fa53e
@ -337,7 +337,7 @@ void shader_dlg_show(HWND parent_hwnd)
|
|||||||
0, 0, SWP_NOSIZE | SWP_SHOWWINDOW);
|
0, 0, SWP_NOSIZE | SWP_SHOWWINDOW);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ShowWindow(g_shader_dlg.hwnd, SW_SHOW);
|
ShowWindow(g_shader_dlg.hwnd, SW_SHOWNORMAL);
|
||||||
|
|
||||||
shader_dlg_update_on_top_state();
|
shader_dlg_update_on_top_state();
|
||||||
|
|
||||||
@ -364,7 +364,7 @@ static LRESULT CALLBACK ShaderDlgWndProc(HWND hwnd, UINT message,
|
|||||||
case WM_CLOSE:
|
case WM_CLOSE:
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
case WM_QUIT:
|
case WM_QUIT:
|
||||||
ShowWindow(g_shader_dlg.hwnd, 0);
|
ShowWindow(g_shader_dlg.hwnd, SW_HIDE);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
|
@ -60,9 +60,11 @@ void ui_window_win32_set_focused(void *data)
|
|||||||
SetFocus(window->hwnd);
|
SetFocus(window->hwnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ui_window_win32_set_visible(void *data,
|
void ui_window_win32_set_visible(void *data,
|
||||||
bool set_visible)
|
bool set_visible)
|
||||||
{
|
{
|
||||||
|
ui_window_win32_t *window = (ui_window_win32_t*)data;
|
||||||
|
ShowWindow(window->hwnd, visible ? SW_SHOWNORMAL : SW_HIDE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ui_window_win32_set_title(void *data, char *buf)
|
void ui_window_win32_set_title(void *data, char *buf)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user