Skip to content
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

Disable overscan compensation for external displays on iOS #1088

Merged
merged 1 commit into from Aug 6, 2019
Merged

Disable overscan compensation for external displays on iOS #1088

merged 1 commit into from Aug 6, 2019

Conversation

ghost
Copy link

@ghost ghost commented Aug 2, 2019

  • Tested on all platforms changed
  • Compilation warnings were addressed
  • cargo fmt has been run on this branch
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

r? @mtak-

@@ -165,7 +165,7 @@ impl Inner {
let uiscreen = match monitor {
Some(Fullscreen::Exclusive(video_mode)) => {
let uiscreen = video_mode.video_mode.monitor.ui_screen() as id;
let () = msg_send![uiscreen, setCurrentMode: video_mode.video_mode.screen_mode];
msg_send![uiscreen, setCurrentMode: video_mode.video_mode.screen_mode];
Copy link
Contributor

Choose a reason for hiding this comment

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

winit has been using explicit return types to guard against msg_send! calls deducing to the ! type after never is stabilized (presently they deduce to () when the type is not explicitly stated). Previous attempts to stabilize ! have caused many bugs in winit. See #428 and the other github activity referencing it. If/when never is stabilized, these calls are likely to deduce to ! causing UB.

I'll open an issue on gfx as well, as I know they also have unconstrained types stemming from msg_send.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Thank you! I've addressed the issue here.

@mtak-
Copy link
Contributor

mtak- commented Aug 5, 2019

Tested on AppleTV. Works. Thanks!

@ghost
Copy link
Author

ghost commented Aug 6, 2019

Thank you for testing this! I've rebased this against master.

@Osspial Osspial merged commit c0c22c8 into rust-windowing:master Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants