tiling: Revert using append_scaled_texture
It slows down zoom and pan and has no use yet.
This commit is contained in:
parent
6a4ee11c76
commit
5217d39cd3
1 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ impl Tile {
|
||||||
/// Add tile to snapshot
|
/// Add tile to snapshot
|
||||||
///
|
///
|
||||||
/// This is where parts of images actually land on the screen
|
/// 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 zoom = self.zoom();
|
||||||
let area = self.area().scale(1. / zoom, 1. / zoom);
|
let area = self.area().scale(1. / zoom, 1. / zoom);
|
||||||
let area_with_bleed = self.area_with_bleed().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
|
// TODO: do not clip outer bounderies of the image
|
||||||
snapshot.push_clip(&area);
|
snapshot.push_clip(&area);
|
||||||
snapshot.append_color(&gdk::RGBA::new(0.118, 0.118, 0.118, 1.), &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();
|
snapshot.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue