Skip to content

Commit

Permalink
improve quality
Browse files Browse the repository at this point in the history
  • Loading branch information
gabm committed Oct 31, 2023
1 parent 8932d07 commit edeb4a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"--",
"--filename",
"/home/gabm/Pictures/Screenshots/swappy-20230921-054340.png",
//"/home/gabm/Pictures/Wallpaper/torres_1.jpg"
//"--fullscreen",
],
"problemMatcher": [
Expand Down
3 changes: 1 addition & 2 deletions src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anyhow::Result;
use gdk_pixbuf::glib::Bytes;
use gdk_pixbuf::Pixbuf;
use pangocairo::cairo::{Context, Format, ImageSurface, Operator};
use pangocairo::cairo::{Filter, Pattern};

use relm4::gtk::gdk::{MemoryFormat, MemoryTexture};
use relm4::gtk::prelude::*;

Expand Down Expand Up @@ -79,7 +79,6 @@ impl Renderer {
// render to window
cx.scale(scale_factor, scale_factor);
cx.set_source_surface(surface, 0.0, 0.0)?;
Pattern::set_filter(&cx.source(), Filter::Fast);
cx.paint()?;

Ok(())
Expand Down

0 comments on commit edeb4a8

Please sign in to comment.