Fixed constness (actually)
This commit is contained in:
parent
94cc602b61
commit
15939a3425
@ -121,10 +121,8 @@ impl ComputedNode {
|
|||||||
/// The calculated node size as width and height in physical pixels, accounting for a non-uniform window scale factor.
|
/// The calculated node size as width and height in physical pixels, accounting for a non-uniform window scale factor.
|
||||||
///
|
///
|
||||||
#[inline]
|
#[inline]
|
||||||
pub const fn logical_size(&self) -> Vec2 {
|
pub fn logical_size(&self) -> Vec2 {
|
||||||
let s = self.size();
|
self.size() * self.inverse_scale_factor()
|
||||||
let scale_fac = self.inverse_scale_factor();
|
|
||||||
s * scale_fac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the thickness of the UI node's outline in physical pixels.
|
/// Returns the thickness of the UI node's outline in physical pixels.
|
||||||
|
Loading…
Reference in New Issue
Block a user