Spelling.
This commit is contained in:
parent
df4cf78703
commit
8f4454b14b
|
@ -13,6 +13,7 @@
|
|||
"latex",
|
||||
"plaintext",
|
||||
"toml",
|
||||
"json"
|
||||
"json",
|
||||
"rust"
|
||||
],
|
||||
}
|
10
TODO/_r.md
10
TODO/_r.md
|
@ -1,8 +1,18 @@
|
|||
* Adjust when respawn stops happening, it can enter an infinite loop in panics like the large image.
|
||||
|
||||
# Scale Factor
|
||||
|
||||
* Prevent windows from losing their maximized state when changing the screen dpi.
|
||||
- Refresh max and min sizes after screen dpi change.
|
||||
- Fixed?
|
||||
|
||||
* Image example panics when changing the screen dpi when web is `loading...`
|
||||
- Also happened once without it being in the `loading...` state when changing from 175% to 100%.
|
||||
- The panic message is: `thread 'main' panicked at 'assertion failed: !self.view_is_rendering()', C:\Users\Well\Desktop\New_folder\zero-ui\zero-ui-core\src\app.rs:1458:9`
|
||||
|
||||
* When changing the dpi upwards (tested by going from 100% to 175%) the frame is heavily scrambled.
|
||||
- Tested with the image example.
|
||||
|
||||
* Losing restore size after changing DPI.
|
||||
|
||||
* After changing DPI image example stays the same proportions.
|
|
@ -2246,7 +2246,7 @@ impl AppWindow {
|
|||
);
|
||||
}
|
||||
|
||||
// the `restore_size` is set from the resize eventy, unless we are not `Normal`, then it is only recorded
|
||||
// the `restore_size` is set from the resize event, unless we are not `Normal`, then it is only recorded
|
||||
// by the view-process, so we need to update here as well.
|
||||
if !matches!(self.vars.state().copy(ctx), WindowState::Normal) {
|
||||
self.vars.0.restore_rect.modify(ctx, move |r| {
|
||||
|
@ -2301,7 +2301,7 @@ impl AppWindow {
|
|||
let _s = tracing::trace_span!("resize/layout").entered();
|
||||
self.size = size;
|
||||
if let Some(w) = &self.headed {
|
||||
let _ = w.set_size(dbg!(size));
|
||||
let _ = w.set_size(size);
|
||||
} else if let Some(s) = &self.headless_surface {
|
||||
let _ = s.set_size(size, self.headless_monitor.as_ref().map(|m| m.scale_factor).unwrap_or(Factor(1.0)));
|
||||
} else {
|
||||
|
@ -3233,7 +3233,7 @@ impl WindowVars {
|
|||
/// this variable tracks the last normal position and size, it will be the window [`actual_position`] and [`actual_size`] again
|
||||
/// when the state is set back to [`Normal`].
|
||||
///
|
||||
/// This is a read-only variable, to programatically set it assign the [`position`] variable.
|
||||
/// This is a read-only variable, to programmatically set it assign the [`position`] variable.
|
||||
///
|
||||
/// The initial value is `(30, 30).at(800, 600)` but this is updated quickly to an actual position. The point
|
||||
/// is relative to the origin of the virtual screen that envelops all monitors.
|
||||
|
|
|
@ -620,7 +620,7 @@ pub struct EventFrameRendered {
|
|||
pub cursor_hits: HitTestResult,
|
||||
}
|
||||
|
||||
/// Identifies a frame request for colaborative resize in [`WindowChanged`].
|
||||
/// Identifies a frame request for collaborative resize in [`WindowChanged`].
|
||||
pub type FrameWaitId = u32;
|
||||
|
||||
/// [`Event::WindowChanged`] payload.
|
||||
|
@ -643,7 +643,7 @@ pub struct WindowChanged {
|
|||
///
|
||||
/// Event loop implementations can use this to resize without visible artifacts
|
||||
/// like the clear color flashing on the window corners, there is a timeout to this delay but it
|
||||
/// can be a noticable stutter, a [`render`] or [`render_update`] request for the window unblocks the loop early
|
||||
/// can be a noticeable stutter, a [`render`] or [`render_update`] request for the window unblocks the loop early
|
||||
/// to continue the resize operation.
|
||||
///
|
||||
/// [`render`]: crate::Api::render
|
||||
|
|
Loading…
Reference in New Issue