Skip to content

Commit 434b2d0

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 66e235a commit 434b2d0

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
@@ -533,12 +533,16 @@ static ResolutionInfo resolution_vr_default()
533533
{
534534
return {(uint32_t)2500, (uint32_t)2500};
535535
}
536-
static bool resolution_change(const ResolutionInfo& info, bool initial)
536+
static bool resolution_change(const ResolutionInfo& info __UNUSED, bool initial)
537537
{
538538
if (initial) {
539539
return false;
540540
}
541541

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

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

0 commit comments

Comments
 (0)