Skip to content

Conversation

@xezon
Copy link

@xezon xezon commented Jun 8, 2025

This change prevents a custom display resolution from changing when making changes in the Options Menu.

Originally, the Display Resolution combo box in the Options Menu did not recognize custom resolutions that were set in the Options.ini. This would force the resolution to change when applying any changes in the Options Menu. When this happened in-game, then the game crashed.

A custom resolution now shows in the Combo Box

shot_20250608_085936_1

TODO

  • Replicate in Generals

@xezon xezon added this to the Stability fixes milestone Jun 8, 2025
@xezon xezon added Bug Something is not working right, typically is user facing Critical Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour Crash This is a crash, very bad labels Jun 8, 2025
@xezon xezon changed the title [GEN][ZH] Prevent a custom display resolution from changing when making changes in the Options Menu [GEN][ZH] Prevent a custom Display Resolution from changing when making other changes in the Options Menu Jun 8, 2025
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an additional sneaky bug. It changes the resolution to what the combo box default is without confirming any resolution change. This causes a notable bug when declining a resolution change. Afterwards the GlobalData resolution is incorrectly set and causes misbehavior in the Options Menu resolution combo box.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someone goofed here.

Copy link

@Mauller Mauller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as intended when run in windowed mode, i have not tested in fullscreen yet since i have other things going on.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someone goofed here.

@xezon xezon force-pushed the xezon/fix-optionsmenu-custom-resolution branch from 9032226 to e70c10a Compare June 11, 2025 20:42
@Mauller
Copy link

Mauller commented Jun 11, 2025

Copy across looks clean

@xezon
Copy link
Author

xezon commented Jun 11, 2025

Replicated in Generals.

@xezon xezon merged commit e8b55f5 into TheSuperHackers:main Jun 12, 2025
18 checks passed
@xezon xezon deleted the xezon/fix-optionsmenu-custom-resolution branch June 12, 2025 16:45
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something is not working right, typically is user facing Crash This is a crash, very bad Critical Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In-Game options change resets resolution to 800x600 and crashes the game

2 participants