Fixed constness (actually)

This commit is contained in:
Brandon S 2025-02-17 10:11:05 -05:00
parent 94cc602b61
commit 15939a3425

View File

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