mirror of
https://github.com/david-schmidt/gsport.git
synced 2025-01-04 19:29:29 +00:00
Fix Shift-F10 status line toggling on Windows.
This commit is contained in:
parent
483b63a050
commit
c64cc86de9
@ -36,6 +36,7 @@ extern HWND g_hwnd_main;
|
|||||||
|
|
||||||
extern char *g_status_ptrs[MAX_STATUS_LINES];
|
extern char *g_status_ptrs[MAX_STATUS_LINES];
|
||||||
extern int g_win_status_debug;
|
extern int g_win_status_debug;
|
||||||
|
extern int g_win_status_debug_request;
|
||||||
extern int g_win_fullscreen_state;
|
extern int g_win_fullscreen_state;
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -105,6 +106,7 @@ void x_toggle_status_lines()
|
|||||||
if (!g_win_fullscreen_state)
|
if (!g_win_fullscreen_state)
|
||||||
{
|
{
|
||||||
g_win_status_debug = !g_win_status_debug;
|
g_win_status_debug = !g_win_status_debug;
|
||||||
|
g_win_status_debug_request = g_win_status_debug;
|
||||||
|
|
||||||
get_default_window_size(&size);
|
get_default_window_size(&size);
|
||||||
SetWindowPos(g_hwnd_main, NULL, 0, 0, size.cx, size.cy, SWP_NOMOVE | SWP_NOZORDER);
|
SetWindowPos(g_hwnd_main, NULL, 0, 0, size.cx, size.cy, SWP_NOMOVE | SWP_NOZORDER);
|
||||||
|
Loading…
Reference in New Issue
Block a user