Skip to content

Commit

Permalink
Apply AA and resolution scale settings at startup (HarbourMasters#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwvc committed Jul 24, 2022
1 parent 0ed4c1a commit fd77502
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libultraship/Lib/Fast3D/gfx_pc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <string>
#include <iostream>

#include "../../Cvar.h"

#include "gfx_pc.h"
#include "gfx_cc.h"
#include "gfx_window_manager_api.h"
Expand Down Expand Up @@ -2649,7 +2651,8 @@ void gfx_init(struct GfxWindowManagerAPI *wapi, struct GfxRenderingAPI *rapi, co
gfx_wapi->init(game_name, start_in_fullscreen, width, height);
gfx_rapi->init();
gfx_rapi->update_framebuffer_parameters(0, width, height, 1, false, true, true, true);
gfx_current_dimensions.internal_mul = 1;
gfx_current_dimensions.internal_mul = CVar_GetFloat("gInternalResolution", 1);
gfx_msaa_level = CVar_GetS32("gMSAAValue", 1);
gfx_current_dimensions.width = width;
gfx_current_dimensions.height = height;
game_framebuffer = gfx_rapi->create_framebuffer();
Expand Down

0 comments on commit fd77502

Please sign in to comment.