ombre: Fix canvas size calculation
0f6c7f45f07d6902c79428caa90e855a6903bd81
1 parent
5e6e6bd4
ombre/src/ui/interface.rs
+1 -4
| 213 | 213 | } |
|
| 214 | 214 | ||
| 215 | 215 | /// Create a context object. |
|
| 216 | 216 | fn context(&self) -> Context { |
|
| 217 | 217 | debug_assert_ne!(self.canvas.size(), Size::ZERO); |
|
| 218 | - | Context::new( |
|
| 219 | - | self.cursor.convert::<Local>(), |
|
| 220 | - | self.canvas.size() / self.canvas.scale(), |
|
| 221 | - | ) |
|
| 218 | + | Context::new(self.cursor.convert::<Local>(), self.canvas.size()) |
|
| 222 | 219 | } |
|
| 223 | 220 | } |
|
| 224 | 221 | ||
| 225 | 222 | /// Interface builder used to produce an [`Interface`]. |
|
| 226 | 223 | pub struct InterfaceBuilder<'r, 'w, R: RenderBackend> { |