summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkglcontext-x11.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-10-31 22:44:15 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-10-31 22:44:15 -0400
commit0411cc5620469bfa76006448f87e9cbabdf5e2ad (patch)
tree17e45bb0ddbe9cd597159ee86bfbe983ac4d7e68 /gdk/x11/gdkglcontext-x11.c
parent727aa6cb08f15ee2ee98851b0f4db0cdc44771c1 (diff)
downloadgtk+-0411cc5620469bfa76006448f87e9cbabdf5e2ad.tar.gz
Drop GdkVisual
This type was unused except for serving as a parent for GdkX11Visual. Just move the fields to that type.
Diffstat (limited to 'gdk/x11/gdkglcontext-x11.c')
-rw-r--r--gdk/x11/gdkglcontext-x11.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdk/x11/gdkglcontext-x11.c b/gdk/x11/gdkglcontext-x11.c
index 76ea3fcc71..7dad7087b0 100644
--- a/gdk/x11/gdkglcontext-x11.c
+++ b/gdk/x11/gdkglcontext-x11.c
@@ -30,7 +30,7 @@
#include "gdkx11screen.h"
#include "gdkx11window.h"
#include "gdkx11visual.h"
-#include "gdkvisualprivate.h"
+#include "gdkvisual-x11.h"
#include "gdkx11property.h"
#include <X11/Xatom.h>
@@ -956,7 +956,7 @@ struct glvisualinfo {
};
static gboolean
-visual_compatible (const GdkVisual *a, const GdkVisual *b)
+visual_compatible (const GdkX11Visual *a, const GdkX11Visual *b)
{
return a->type == b->type &&
a->depth == b->depth &&
@@ -968,7 +968,7 @@ visual_compatible (const GdkVisual *a, const GdkVisual *b)
}
static gboolean
-visual_is_rgba (const GdkVisual *visual)
+visual_is_rgba (const GdkX11Visual *visual)
{
return
visual->depth == 32 &&
@@ -979,12 +979,12 @@ visual_is_rgba (const GdkVisual *visual)
/* This picks a compatible (as in has the same X visual details) visual
that has "better" characteristics on the GL side */
-static GdkVisual *
+static GdkX11Visual *
pick_better_visual_for_gl (GdkX11Screen *x11_screen,
struct glvisualinfo *gl_info,
- GdkVisual *compatible)
+ GdkX11Visual *compatible)
{
- GdkVisual *visual;
+ GdkX11Visual *visual;
int i;
gboolean want_alpha = visual_is_rgba (compatible);
@@ -1138,7 +1138,7 @@ _gdk_x11_screen_update_visuals_for_gl (GdkScreen *screen)
{
for (i = 0; i < x11_screen->nvisuals; i++)
{
- GdkVisual *visual = x11_screen->visuals[i];
+ GdkX11Visual *visual = x11_screen->visuals[i];
int visual_id = gdk_x11_visual_get_xvisual (visual)->visualid;
if (visual_id == system_visual_id)