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 building with Xcode 10 #3451
Conversation
1 is almost certainly the same underlying window size issue as the other bugs. The logo and text draw, just outside the bounds of the visible area. |
Update |
To be expected, yes. |
@Vultraz , can I include this flag to all builds (including windows, linux, ...) or only for apple? ( Also another question: It is easy fix but isn't it just workaround? |
That flag is indeed meant to be used on high-DPI systems, though I think it's really meant for macOS, since Windows doesn't use the macOS method of having a canvas 2x the size rendered in 1x the space. Should be fine on all builds. |
src/video.cpp
Outdated
@@ -232,6 +232,7 @@ void CVideo::init_window() | |||
|
|||
// Add any more default flags here | |||
window_flags |= SDL_WINDOW_RESIZABLE; | |||
window_flags |= SDL_WINDOW_ALLOW_HIGHDPI; |
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.
This line should be indented with tabs.
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.
F**k... Again? 😃
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.
Fixed - 0021006
Update |
Update IIRC there was some changes in 10.14 SDK around graphics. Apple deprecated OpenGL in favour of Metal. Maybe it is related. From macOS 10.14 Beta 6 Release notes:
Xcode 10 Beta 5 Release Notes available from unofficial 3rd-party site: https://devapple.weebly.com/uploads/1/0/8/0/108009593/release_notes_for_xcode_10_beta_5.pdf and macOS 10.14 Beta 6 Release Notes available from unofficial 3rd-party site: https://www.scribd.com/document/385580441/MacOS-10-14-Beta-6-Release-Notes |
Ok, maybe we can merge this PR and create new issue for blank screen. |
I am on right track with issue number 1 This issue is NOT cause by Xcode 10 but by macOS 10.14 SDK. Please merge this PR as all problems with Xcode 10 are fixed and I'll open new issue for tracking macOS 10.14 specific issues. |
You should edit WIP out of the title once it's no longer the case. |
ede015e
to
eb4a09d
Compare
Needs to be done on master too now, right? |
Problem description
Whole problem is described in issue #3350
TODO
New bugs introduced by XCode 10
1) Blank screen on start
Game starts with blank screen. You can click elements (you can hear click sound) but you won't see anything until you move window. When you move window or resize it video appears. This issue is not caused by Xcode 10 but by macOS 10.14 api changes. I'll create new issue for tracking macOS 10.14 specific problems.
2) Blurry video in window mode
3) Bad resolution in fullscreen
When I switch game to fullscreen display starts to be cropped. Click coordinates works as expected (means that when you click somewhere in bottom right side, you will got window with credits or game quits or preferences appears (depends on where exactly you click)
(Before click)
(After click)