-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fix game scaling #910
Merged
Merged
Fix game scaling #910
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5e0c681
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk d5f7361
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk d08bfcf
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk 5126833
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk 7fb35f5
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk ad5c297
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk 08daa5b
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk 4354d63
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk 606f5d4
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk d7dc075
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk b7ce610
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk bd42430
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk 4f72ce2
Merge branch 'master' of https://github.com/vegastrike/Vega-Strike-En…
royfalk 03138f0
Fix game scaling issue
royfalk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
These should probably be in variables/constants and match L2168. (1920, 1080) is outside the window defined by L2168.
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.
The plan (fairly advanced actually) is to move all settings in the engine to an automatically generated and populated singleton. That would deprecate a huge chunk of code, from settings, configuration, all those XMLParser lines, etc.
The JSON parser would convert directly to the filetype and you'd work against a variable. https://github.com/royfalk/JsonStruct has the script to generate this.
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.
@royfalk that's fine - just calling out the potential bug due to the the window size not matching here.
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.
That's interesting. I guess I need to figure out what objconv does. It's not part of the main game,as far as I can tell. I'm also not convinced we are using glutInit in the actual game. I think both SDL and glut were supported and I picked SDL.
This lack of focus by the original devs... well.
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.
At least when working with Qt, the coordinate system worked in two parts:
It gave some interesting effects. So technically, those coordinates exist but they may be outside the view port; but that's probably not what we want.