aboutsummaryrefslogtreecommitdiff
path: root/fastiv-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'fastiv-view.c')
-rw-r--r--fastiv-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fastiv-view.c b/fastiv-view.c
index 700dc9b..a9ba5cf 100644
--- a/fastiv-view.c
+++ b/fastiv-view.c
@@ -181,6 +181,10 @@ fastiv_view_realize(GtkWidget *widget)
gtk_widget_register_window(widget, window);
gtk_widget_set_window(widget, window);
gtk_widget_set_realized(widget, TRUE);
+
+ // Without the following call, or the rendering mode set to "recording",
+ // RGB30 degrades to RGB24.
+ gdk_window_ensure_native(window);
}
static gboolean