[gtk/wip/otte/color-profiles: 36/38] xxx
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/color-profiles: 36/38] xxx
- Date: Sat, 25 Sep 2021 00:48:13 +0000 (UTC)
commit 12a8d19de6d7d6724c40ee974a057bd3517fa797
Author: Benjamin Otte <otte redhat com>
Date: Fri Sep 24 20:07:56 2021 +0200
xxx
gdk/gdksurface.c | 3 +++
gdk/gdksurfaceprivate.h | 1 +
2 files changed, 4 insertions(+)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 53c98c9158..5569d9cb98 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -470,6 +470,8 @@ gdk_surface_init (GdkSurface *surface)
surface->alpha = 255;
+ surface->color_profile = gdk_color_profile_get_srgb ();
+
surface->device_cursor = g_hash_table_new_full (NULL, NULL,
NULL, g_object_unref);
}
@@ -714,6 +716,7 @@ gdk_surface_finalize (GObject *object)
g_clear_object (&surface->cursor);
g_clear_pointer (&surface->device_cursor, g_hash_table_destroy);
g_clear_pointer (&surface->devices_inside, g_list_free);
+ g_clear_object (&surface->color_profile);
g_clear_object (&surface->display);
diff --git a/gdk/gdksurfaceprivate.h b/gdk/gdksurfaceprivate.h
index 3ab692e19c..4c826f96f2 100644
--- a/gdk/gdksurfaceprivate.h
+++ b/gdk/gdksurfaceprivate.h
@@ -54,6 +54,7 @@ struct _GdkSurface
int y;
GdkGLContext *gl_paint_context;
+ GdkColorProfile *color_profile;
cairo_region_t *update_area;
guint update_freeze_count;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]