Skip to content

Commit

Permalink
use two extra pixels instead of one (prevent blurry text)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Feb 3, 2017
1 parent 97d0f12 commit 0034905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/sdl/sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ HL_PRIM bool HL_NAME(win_set_fullscreen)(SDL_Window *win, int mode) {
save->style = GetWindowLong(wnd,GWL_STYLE);
SDL_SetWindowData(win,"save",save);
SetWindowLong(wnd,GWL_STYLE, WS_POPUP | WS_VISIBLE);
SetWindowPos(wnd,NULL,mi.rcMonitor.left,mi.rcMonitor.top,mi.rcMonitor.right - mi.rcMonitor.left,mi.rcMonitor.bottom - mi.rcMonitor.top + 1 /* prevent opengl driver to use exclusive mode !*/,0);
SetWindowPos(wnd,NULL,mi.rcMonitor.left,mi.rcMonitor.top,mi.rcMonitor.right - mi.rcMonitor.left,mi.rcMonitor.bottom - mi.rcMonitor.top + 2 /* prevent opengl driver to use exclusive mode !*/,0);
return true;
}
# else
Expand Down

0 comments on commit 0034905

Please sign in to comment.