-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
native/macos: Fixes setNeedsDisplay call on arm macs #476
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Unchanged files with check annotations Beta
let d = native_display().lock().unwrap(); | ||
d.view | ||
} | ||
#[cfg(target_ios = "ios")] | ||
Check warning on line 312 in src/lib.rs
|
||
pub fn apple_view_ctrl() -> crate::native::apple::frameworks::ObjcId { | ||
let d = native_display().lock().unwrap(); | ||
d.view_ctrl |
unsafe { | ||
#[cfg(target_arch = "x86_64")] | ||
SetWindowLongPtrA(self.wnd, GWL_STYLE, win_style as _); | ||
#[cfg(target_arch = "i686")] | ||
Check warning on line 163 in src/native/windows.rs
|
||
SetWindowLong(self.wnd, GWL_STYLE, win_style as _); | ||
if self.fullscreen { | ||
fn process_request(&mut self, request: Request) { | ||
use Request::*; | ||
unsafe { | ||
Check warning on line 827 in src/native/windows.rs
|
||
match request { | ||
ScheduleUpdate => { | ||
self.update_requested = true; | ||
} => self.set_window_size(new_width as _, new_height as _), | ||
SetWindowPosition { new_x, new_y } => self.set_window_position(new_x, new_y), | ||
SetFullscreen(fullscreen) => self.set_fullscreen(fullscreen), | ||
ShowKeyboard(show) => { | ||
Check warning on line 841 in src/native/windows.rs
|
||
eprintln!("Not implemented for windows") | ||
} | ||
} | ||
#[cfg(target_arch = "x86_64")] | ||
SetWindowLongPtrA(wnd, GWLP_USERDATA, &mut display as *mut _ as isize); | ||
#[cfg(target_arch = "i686")] | ||
Check warning on line 920 in src/native/windows.rs
|
||
SetWindowLong(wnd, GWLP_USERDATA, &mut display as *mut _ as isize); | ||
let mut done = false; |
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.
shame on you, apple, I wish we did not need to do this :(