Fixing constness
This commit is contained in:
parent
baabdffca1
commit
94cc602b61
@ -122,7 +122,9 @@ impl ComputedNode {
|
|||||||
///
|
///
|
||||||
#[inline]
|
#[inline]
|
||||||
pub const fn logical_size(&self) -> Vec2 {
|
pub const fn logical_size(&self) -> Vec2 {
|
||||||
self.size() * self.inverse_scale_factor()
|
let s = self.size();
|
||||||
|
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