mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 19:02:19 -05:00
[macos] Disable buggy resolution scaling (#982)
This commit is contained in:
parent
d332c3d9d6
commit
b4f4e36acb
@ -859,10 +859,12 @@ namespace SohImGui {
|
|||||||
|
|
||||||
if (ImGui::BeginMenu("Graphics"))
|
if (ImGui::BeginMenu("Graphics"))
|
||||||
{
|
{
|
||||||
|
#ifndef __APPLE__
|
||||||
EnhancementSliderFloat("Internal Resolution: %d %%", "##IMul", "gInternalResolution", 0.5f, 2.0f, "", 1.0f, true);
|
EnhancementSliderFloat("Internal Resolution: %d %%", "##IMul", "gInternalResolution", 0.5f, 2.0f, "", 1.0f, true);
|
||||||
Tooltip("Multiplies your output resolution by the value inputted,\nas a more intensive but effective form of anti-aliasing");
|
Tooltip("Multiplies your output resolution by the value inputted,\nas a more intensive but effective form of anti-aliasing");
|
||||||
gfx_current_dimensions.internal_mul = CVar_GetFloat("gInternalResolution", 1);
|
gfx_current_dimensions.internal_mul = CVar_GetFloat("gInternalResolution", 1);
|
||||||
EnhancementSliderInt("MSAA: %d", "##IMSAA", "gMSAAValue", 1, 8, "");
|
#endif
|
||||||
|
EnhancementSliderInt("MSAA: %d", "##IMSAA", "gMSAAValue", 1, 8, "", 1, true);
|
||||||
Tooltip("Activates multi-sample anti-aliasing when above 1x\nup to 8x for 8 samples for every pixel");
|
Tooltip("Activates multi-sample anti-aliasing when above 1x\nup to 8x for 8 samples for every pixel");
|
||||||
gfx_msaa_level = CVar_GetS32("gMSAAValue", 1);
|
gfx_msaa_level = CVar_GetS32("gMSAAValue", 1);
|
||||||
|
|
||||||
|
@ -2651,7 +2651,11 @@ void gfx_init(struct GfxWindowManagerAPI *wapi, struct GfxRenderingAPI *rapi, co
|
|||||||
gfx_wapi->init(game_name, start_in_fullscreen, width, height);
|
gfx_wapi->init(game_name, start_in_fullscreen, width, height);
|
||||||
gfx_rapi->init();
|
gfx_rapi->init();
|
||||||
gfx_rapi->update_framebuffer_parameters(0, width, height, 1, false, true, true, true);
|
gfx_rapi->update_framebuffer_parameters(0, width, height, 1, false, true, true, true);
|
||||||
|
#ifdef __APPLE__
|
||||||
|
gfx_current_dimensions.internal_mul = 1;
|
||||||
|
#else
|
||||||
gfx_current_dimensions.internal_mul = CVar_GetFloat("gInternalResolution", 1);
|
gfx_current_dimensions.internal_mul = CVar_GetFloat("gInternalResolution", 1);
|
||||||
|
#endif
|
||||||
gfx_msaa_level = CVar_GetS32("gMSAAValue", 1);
|
gfx_msaa_level = CVar_GetS32("gMSAAValue", 1);
|
||||||
gfx_current_dimensions.width = width;
|
gfx_current_dimensions.width = width;
|
||||||
gfx_current_dimensions.height = height;
|
gfx_current_dimensions.height = height;
|
||||||
|
Loading…
Reference in New Issue
Block a user