-
Notifications
You must be signed in to change notification settings - Fork 118
refactor(client): Use constants for default display width and height values #1465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(client): Use constants for default display width and height values #1465
Conversation
| #define MIN_DISPLAY_BIT_DEPTH 16 | ||
| #define DEFAULT_DISPLAY_BIT_DEPTH 32 | ||
| #define DEFAULT_DISPLAY_WIDTH 800 // The standard resolution this game was designed for | ||
| #define DEFAULT_DISPLAY_HEIGHT 600 // The standard resolution this game was designed for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to make these static const or CONSTEXPR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After VC6, yes. With VC6 this ideally is an enum value or macro.
|
Missing the change for W3DHorizontalSlider.cpp line 232: GlobalLanguage.cpp i think this is also meant to relate to default width too W3DMainMenu.cpp |
|
Fixed. |
Mauller
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me from what i could find.
|
Replicated in Generals with conflicts. |
This change moves the default resolution constants to GameDefines.h and uses them at places.
TODO