aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-04 12:03:42 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-04 12:10:35 +0200
commit6a7c86a41b9cb4938a0de02e3ceb06f113350ffb (patch)
tree8a1fb148ccf724e7c13ad4858956e9d7be7319d3
parent6277a32fe6b6ccf76882d2eb44c423517eaadf10 (diff)
downloadfiv-6a7c86a41b9cb4938a0de02e3ceb06f113350ffb.tar.gz
fiv-6a7c86a41b9cb4938a0de02e3ceb06f113350ffb.tar.xz
fiv-6a7c86a41b9cb4938a0de02e3ceb06f113350ffb.zip
Remove a macOS rendering bug workaround
Most important Cairo bugs seem to have been fixed recently.
-rw-r--r--README.adoc2
-rw-r--r--fiv.c11
2 files changed, 1 insertions, 12 deletions
diff --git a/README.adoc b/README.adoc
index 30a0f91..66ce631 100644
--- a/README.adoc
+++ b/README.adoc
@@ -2,7 +2,7 @@ fiv
===
'fiv' is a slightly unconventional, general-purpose image browser and viewer
-for Linux (that said, macOS and Windows ports are possible).
+for Linux (as well as macOS and Windows, though these have known issues).
image::docs/fiv.webp["Screenshot of both the browser and the viewer"]
diff --git a/fiv.c b/fiv.c
index 3911cec..65679d5 100644
--- a/fiv.c
+++ b/fiv.c
@@ -388,12 +388,6 @@ on_about_draw(GtkWidget *widget, cairo_t *cr, gpointer user_data)
GtkStyleContext *style = gtk_widget_get_style_context(widget);
gtk_render_background(style, cr, 0, 0, allocation.width, allocation.height);
- // The transformation matrix turns out/is applied wrongly on Quartz.
- gboolean broken_backend = cairo_surface_get_type(cairo_get_target(cr)) ==
- CAIRO_SURFACE_TYPE_QUARTZ;
- if (broken_backend)
- cairo_push_group(cr);
-
cairo_translate(cr, (allocation.width - ABOUT_SIZE * ABOUT_SCALE) / 2,
ABOUT_SIZE * ABOUT_SCALE / 4);
cairo_scale(cr, ABOUT_SCALE, ABOUT_SCALE);
@@ -419,11 +413,6 @@ on_about_draw(GtkWidget *widget, cairo_t *cr, gpointer user_data)
cairo_restore(cr);
draw_ligature(cr);
-
- if (broken_backend) {
- cairo_pop_group_to_source(cr);
- cairo_paint(cr);
- }
return TRUE;
}