1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Deprecated RawInput::screen_size and replaced with screen_rect

This commit is contained in:
Emil Ernerfeldt
2020-12-16 21:48:02 +01:00
parent 2c766aa540
commit 709e711364
7 changed files with 74 additions and 28 deletions

View File

@@ -113,7 +113,10 @@ pub struct WebInput {
impl WebInput {
pub fn new_frame(&mut self) -> egui::RawInput {
egui::RawInput {
screen_size: screen_size_in_native_points().unwrap(),
screen_rect: Some(egui::Rect::from_min_size(
Default::default(),
screen_size_in_native_points().unwrap(),
)),
pixels_per_point: Some(native_pixels_per_point()),
time: Some(now_sec()),
..self.raw.take()