Skip to content

Commit 55bc4ba

Browse files
re-disable changing resolution at runtime
FSO doesn't properly resize framebuffers or anything when the resolution changes, or scale to different window sizes properly when resolutions differ, so although this code works it must be disabled. Having this ability disabled has also been recommended due to scripts not being able to deal with resolution changes.
1 parent 4859732 commit 55bc4ba

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

code/graphics/2d.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,12 +532,16 @@ static ResolutionInfo resolution_vr_default()
532532
{
533533
return {(uint32_t)2500, (uint32_t)2500};
534534
}
535-
static bool resolution_change(const ResolutionInfo& info, bool initial)
535+
static bool resolution_change(const ResolutionInfo& info __UNUSED, bool initial)
536536
{
537537
if (initial) {
538538
return false;
539539
}
540540

541+
return false;
542+
543+
// The following code should change the size of the window properly but FSO currently can't handle that
544+
/*
541545
auto window = os::getSDLMainWindow();
542546
if (window == nullptr) {
543547
return false;
@@ -559,6 +563,7 @@ static bool resolution_change(const ResolutionInfo& info, bool initial)
559563
}
560564
561565
return true;
566+
*/
562567
}
563568

564569
static bool resolution_vr_change(const ResolutionInfo& /*info*/, bool initial)

0 commit comments

Comments
 (0)