aboutsummaryrefslogtreecommitdiff
path: root/stockton-skeleton/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-skeleton/src/lib.rs')
-rw-r--r--stockton-skeleton/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/stockton-skeleton/src/lib.rs b/stockton-skeleton/src/lib.rs
index 785fb30..b514531 100644
--- a/stockton-skeleton/src/lib.rs
+++ b/stockton-skeleton/src/lib.rs
@@ -72,7 +72,7 @@ impl<DP: DrawPass<Singular>> Renderer<DP> {
}
pub fn get_aspect_ratio(&self) -> f32 {
- let e = self.context.target_chain().properties().extent;
+ let e = self.context.properties().extent;
e.width as f32 / e.height as f32
}