add support for alt+enter in fullscreen upscaled mode
This commit is contained in:
parent
ec36b6d7bc
commit
434fb4de99
5 changed files with 25 additions and 9 deletions
15
src/utils.c
15
src/utils.c
|
@ -421,7 +421,7 @@ void util_toggle_fullscreen()
|
|||
{
|
||||
mouse_unlock();
|
||||
|
||||
g_config.borderless_state = g_config.fullscreen = TRUE;
|
||||
g_config.upscaled_state = g_config.fullscreen = TRUE;
|
||||
dd_SetDisplayMode(g_ddraw->width, g_ddraw->height, g_ddraw->bpp, 0);
|
||||
|
||||
mouse_lock();
|
||||
|
@ -430,7 +430,7 @@ void util_toggle_fullscreen()
|
|||
{
|
||||
mouse_unlock();
|
||||
|
||||
g_config.borderless_state = g_config.fullscreen = FALSE;
|
||||
g_config.upscaled_state = g_config.fullscreen = FALSE;
|
||||
dd_SetDisplayMode(g_ddraw->width, g_ddraw->height, g_ddraw->bpp, 0);
|
||||
|
||||
//mouse_lock();
|
||||
|
@ -442,6 +442,11 @@ void util_toggle_fullscreen()
|
|||
{
|
||||
mouse_unlock();
|
||||
|
||||
if (g_config.toggle_upscaled)
|
||||
{
|
||||
g_config.upscaled_state = g_config.fullscreen = TRUE;
|
||||
}
|
||||
|
||||
g_config.window_state = g_config.windowed = FALSE;
|
||||
dd_SetDisplayMode(g_ddraw->width, g_ddraw->height, g_ddraw->bpp, SDM_LEAVE_WINDOWED);
|
||||
util_update_bnet_pos(0, 0);
|
||||
|
@ -451,6 +456,12 @@ void util_toggle_fullscreen()
|
|||
else
|
||||
{
|
||||
mouse_unlock();
|
||||
|
||||
if (g_config.toggle_upscaled)
|
||||
{
|
||||
g_config.upscaled_state = g_config.fullscreen = FALSE;
|
||||
}
|
||||
|
||||
g_config.window_state = g_config.windowed = TRUE;
|
||||
|
||||
if (g_ddraw->renderer == d3d9_render_main && !g_config.nonexclusive)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue