-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tried to make the engine retain the user selected resolution (#416)
I changed 3 files and created preference_data.hpp. You should be weary of my lack of knowledge about how Frogatto treats it's virtual gamescreen sizes. Basically I added an if statement that separates presence and absence of a preferences.cfg. If the file exists, the autoSelectResolution function is not called, because why should the resolution be set automatically when user defined settings exist? Please notify me if my changes require further explanation. Also here's a video showing off the changes. https://youtu.be/Wueo7ppIjr0
- Loading branch information
1 parent
ae23d3c
commit 64ff944
Showing
4 changed files
with
55 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef PREFERENCE_DATA | ||
#define PREFERENCE_DATA | ||
|
||
#include <string> | ||
|
||
struct PreferenceData{ | ||
int resolution_width; | ||
int resolution_height; | ||
bool error = false; | ||
std::string error_message = ""; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters