mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-01 19:48:11 +00:00
unminimize on exception hit
This commit is contained in:
@@ -181,8 +181,14 @@ os_window_set_maximized(OS_Handle handle, B32 maximized)
|
||||
if(os_handle_match(handle, os_handle_zero())) {return;}
|
||||
}
|
||||
|
||||
internal B32
|
||||
os_window_is_minimized(OS_Handle window)
|
||||
{
|
||||
if(os_handle_match(handle, os_handle_zero())) {return 0;}
|
||||
}
|
||||
|
||||
internal void
|
||||
os_window_minimize(OS_Handle handle)
|
||||
os_window_set_minimized(OS_Handle window, B32 minimized)
|
||||
{
|
||||
if(os_handle_match(handle, os_handle_zero())) {return;}
|
||||
}
|
||||
|
||||
+2
-1
@@ -148,7 +148,8 @@ internal B32 os_window_is_fullscreen(OS_Handle window);
|
||||
internal void os_window_set_fullscreen(OS_Handle window, B32 fullscreen);
|
||||
internal B32 os_window_is_maximized(OS_Handle window);
|
||||
internal void os_window_set_maximized(OS_Handle window, B32 maximized);
|
||||
internal void os_window_minimize(OS_Handle window);
|
||||
internal B32 os_window_is_minimized(OS_Handle window);
|
||||
internal void os_window_set_minimized(OS_Handle window, B32 minimized);
|
||||
internal void os_window_bring_to_front(OS_Handle window);
|
||||
internal void os_window_set_monitor(OS_Handle window, OS_Handle monitor);
|
||||
internal void os_window_clear_custom_border_data(OS_Handle handle);
|
||||
|
||||
@@ -83,8 +83,14 @@ os_window_set_maximized(OS_Handle window, B32 maximized)
|
||||
{
|
||||
}
|
||||
|
||||
internal B32
|
||||
os_window_is_minimized(OS_Handle window)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
internal void
|
||||
os_window_minimize(OS_Handle window)
|
||||
os_window_set_minimized(OS_Handle window, B32 minimized)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -1177,13 +1177,30 @@ os_window_set_maximized(OS_Handle handle, B32 maximized)
|
||||
}
|
||||
}
|
||||
|
||||
internal B32
|
||||
os_window_is_minimized(OS_Handle handle)
|
||||
{
|
||||
B32 result = 0;
|
||||
OS_W32_Window *window = os_w32_window_from_handle(handle);
|
||||
if(window)
|
||||
{
|
||||
result = !!(IsIconic(window->hwnd));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
internal void
|
||||
os_window_minimize(OS_Handle handle)
|
||||
os_window_set_minimized(OS_Handle handle, B32 minimized)
|
||||
{
|
||||
OS_W32_Window *window = os_w32_window_from_handle(handle);
|
||||
if(window != 0)
|
||||
{
|
||||
ShowWindow(window->hwnd, SW_MINIMIZE);
|
||||
switch(minimized)
|
||||
{
|
||||
default:
|
||||
case 0:{ShowWindow(window->hwnd, SW_RESTORE);}break;
|
||||
case 1:{ShowWindow(window->hwnd, SW_MINIMIZE);}break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user