From 5217d39cd373c6234521beea170d2dd053754ccd Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Tue, 7 Mar 2023 18:25:40 +0100 Subject: [PATCH] tiling: Revert using append_scaled_texture It slows down zoom and pan and has no use yet. --- src/decoder/tiling.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decoder/tiling.rs b/src/decoder/tiling.rs index 6e8c47a..9e0ec61 100644 --- a/src/decoder/tiling.rs +++ b/src/decoder/tiling.rs @@ -60,7 +60,7 @@ impl Tile { /// Add tile to snapshot /// /// This is where parts of images actually land on the screen - pub fn add_to_snapshot(&self, snapshot: >k::Snapshot, options: &RenderOptions) { + pub fn add_to_snapshot(&self, snapshot: >k::Snapshot, _options: &RenderOptions) { let zoom = self.zoom(); let area = self.area().scale(1. / zoom, 1. / zoom); let area_with_bleed = self.area_with_bleed().scale(1. / zoom, 1. / zoom); @@ -68,7 +68,7 @@ impl Tile { // TODO: do not clip outer bounderies of the image snapshot.push_clip(&area); snapshot.append_color(&gdk::RGBA::new(0.118, 0.118, 0.118, 1.), &area); - snapshot.append_scaled_texture(&self.texture, options.scaling_filter, &area_with_bleed); + snapshot.append_texture(&self.texture, &area_with_bleed); snapshot.pop(); }