Skip to content

Commit df991de

Browse files
committed
minor performance improvements
1 parent 4c7a680 commit df991de

3 files changed

Lines changed: 15 additions & 13 deletions

File tree

‎data/io.github.vani1_2.memerist.metainfo.xml.in‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
</screenshot>
4545
</screenshots>
4646
<releases>
47-
<release version="0.2.2" date="2026-1-9">
47+
<release version="0.2.3" date="2026-1-9">
4848
<description translate="no">
4949
<ul>
50-
<li> moved the delete layer button on the floating sidebar </li>
50+
<li>minor performance improvement</li>
5151
</ul>
5252
</description>
5353
</release>

‎memerist.spec‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: memerist
2-
Version: 0.2.2
2+
Version: 0.2.3
33
Release: 1%{?dist}
44
Summary: Meme generator with text overlays
55
License: GPL-3.0-or-later
@@ -30,5 +30,5 @@ Create memes with custom text overlays using a native GNOME interface.
3030

3131

3232
%changelog
33-
* Sun Dec 07 2026 Vani1-2 <giovannirafanan609@gmail.com> - 0.2.2-1
33+
* Sun Dec 07 2026 Vani1-2 <giovannirafanan609@gmail.com> - 0.2.3-1
3434
- moved delete button on the floating sidebar

‎src/myapp-window.c‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,15 +1312,17 @@ static void render_meme (MyappWindow *self) {
13121312
if (composite_pixbuf == NULL) return;
13131313

13141314

1315-
if (gtk_toggle_button_get_active(self->cinematic_button)) {
1316-
cinematic = apply_saturation_contrast(composite_pixbuf, 1.15, 1.05);
1317-
if (cinematic) { g_object_unref(composite_pixbuf); composite_pixbuf = cinematic; }
1318-
}
1319-
1320-
if (gtk_toggle_button_get_active (self->deep_fry_button)) {
1321-
fried = apply_deep_fry (composite_pixbuf);
1322-
if (fried) { g_object_unref (composite_pixbuf); composite_pixbuf = fried; }
1323-
}
1315+
if (self->drag_type == DRAG_TYPE_NONE) {
1316+
if (gtk_toggle_button_get_active(self->cinematic_button)) {
1317+
cinematic = apply_saturation_contrast(composite_pixbuf, 1.15, 1.05);
1318+
if (cinematic) { g_object_unref(composite_pixbuf); composite_pixbuf = cinematic; }
1319+
}
1320+
1321+
if (gtk_toggle_button_get_active (self->deep_fry_button)) {
1322+
fried = apply_deep_fry (composite_pixbuf);
1323+
if (fried) { g_object_unref (composite_pixbuf); composite_pixbuf = fried; }
1324+
}
1325+
}
13241326

13251327
g_clear_object (&self->final_meme);
13261328
self->final_meme = composite_pixbuf;

0 commit comments

Comments
 (0)