Browse Source

use two extra pixels instead of one (prevent blurry text)

Nicolas Cannasse 8 years ago
parent
commit
003490530c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libs/sdl/sdl.c

+ 1 - 1
libs/sdl/sdl.c

@@ -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