Skip to content

Commit

Permalink
Using primary screen dimensions instead of virtual
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
ata4 committed Feb 19, 2018
1 parent 4c4a265 commit 5c8b788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin-zilmar/screen.c
Expand Up @@ -193,8 +193,8 @@ void screen_set_fullscreen(bool _fullscreen)
GetWindowPlacement(gfx.hWnd, &old_pos);

// use virtual screen dimensions for fullscreen mode
int32_t vs_width = GetSystemMetrics(SM_CXVIRTUALSCREEN);
int32_t vs_height = GetSystemMetrics(SM_CYVIRTUALSCREEN);
int32_t vs_width = GetSystemMetrics(SM_CXSCREEN);
int32_t vs_height = GetSystemMetrics(SM_CYSCREEN);

// disable all styles to get a borderless window and save it to restore
// it later
Expand Down

0 comments on commit 5c8b788

Please sign in to comment.