Skip to content

Disable overscan compensation for external displays on iOS#1088

Merged
Osspial merged 1 commit intomasterfrom
unknown repository
Aug 6, 2019
Merged

Disable overscan compensation for external displays on iOS#1088
Osspial merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@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-

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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor

mtak- commented Aug 5, 2019

Tested on AppleTV. Works. Thanks!

@ghost
Copy link
Copy Markdown
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