Stop calling Scene::set_transform

The Scene::set_transform method was only introduced because of an old
rustc bug around mutating properties across crates. Now that the rustc
bug is fixed, we can stop calling this method.
This commit is contained in:
Cameron Zwarich 2014-07-04 00:42:40 -07:00
parent 6ce4e62e11
commit 4777a39479

View file

@ -674,7 +674,7 @@ impl IOCompositor {
fn update_zoom_transform(&mut self) {
let scale = self.device_pixels_per_page_px();
self.scene.set_transform(identity().scale(scale.get(), scale.get(), 1f32));
self.scene.transform = identity().scale(scale.get(), scale.get(), 1f32);
}
fn on_zoom_window_event(&mut self, magnification: f32) {