diff --git a/quakespasm/Quake/gl_rmain.c b/quakespasm/Quake/gl_rmain.c index ff3c7df6..eae65ea4 100644 --- a/quakespasm/Quake/gl_rmain.c +++ b/quakespasm/Quake/gl_rmain.c @@ -968,14 +968,14 @@ void R_ScaleView (void) if (r_scale.value == 1) return; - + // copied from R_SetupGL() scale = CLAMP(1, (int)r_scale.value, 4); srcx = glx + r_refdef.vrect.x; srcy = gly + glheight - r_refdef.vrect.y - r_refdef.vrect.height; srcw = r_refdef.vrect.width / scale; srch = r_refdef.vrect.height / scale; - + // create render-to-texture texture if needed if (!r_scaleview_texture) { @@ -985,7 +985,7 @@ void R_ScaleView (void) r_scaleview_texture_width = 0; r_scaleview_texture_height = 0; } - + // resize render-to-texture texture if needed if (r_scaleview_texture_width < srcw || r_scaleview_texture_height < srch) @@ -1106,7 +1106,7 @@ void R_RenderView (void) R_RenderScene (); } //johnfitz - + R_ScaleView (); //johnfitz -- modified r_speeds output diff --git a/quakespasm/Quake/gl_rmisc.c b/quakespasm/Quake/gl_rmisc.c index 7d803478..4e742a80 100644 --- a/quakespasm/Quake/gl_rmisc.c +++ b/quakespasm/Quake/gl_rmisc.c @@ -240,7 +240,7 @@ void R_Init (void) Cvar_SetCallback (&r_lavaalpha, R_SetLavaalpha_f); Cvar_SetCallback (&r_telealpha, R_SetTelealpha_f); Cvar_SetCallback (&r_slimealpha, R_SetSlimealpha_f); - + R_InitParticles (); R_SetClearColor_f (&r_clearcolor); //johnfitz diff --git a/quakespasm/Quake/gl_screen.c b/quakespasm/Quake/gl_screen.c index 230e9383..0d560471 100644 --- a/quakespasm/Quake/gl_screen.c +++ b/quakespasm/Quake/gl_screen.c @@ -322,7 +322,7 @@ static void SCR_CalcRefdef (void) r_refdef.vrect.x = (glwidth - r_refdef.vrect.width)/2; r_refdef.vrect.y = (glheight - sb_lines - r_refdef.vrect.height)/2; //johnfitz - + r_refdef.fov_x = AdaptFovx(scr_fov.value, vid.width, vid.height); r_refdef.fov_y = CalcFovy (r_refdef.fov_x, r_refdef.vrect.width, r_refdef.vrect.height); @@ -421,7 +421,7 @@ void SCR_Init (void) Cvar_RegisterVariable (&scr_centertime); Cvar_RegisterVariable (&scr_printspeed); Cvar_RegisterVariable (&gl_triplebuffer); - + Cmd_AddCommand ("screenshot",SCR_ScreenShot_f); Cmd_AddCommand ("sizeup",SCR_SizeUp_f); Cmd_AddCommand ("sizedown",SCR_SizeDown_f);