gdk: Use RGBA visual if there is one
https://bugzilla.redhat.com/show_bug.cgi?id=1206960
This commit is contained in:
parent
3e9f54daaa
commit
e258e7a2e2
30
0001-gdk-Use-RGBA-visual-if-there-is-one.patch
Normal file
30
0001-gdk-Use-RGBA-visual-if-there-is-one.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
From 8fc8a73580ceb810ee7f34eae0df26fac4cb277d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Emmanuele Bassi <ebassi@gnome.org>
|
||||||
|
Date: Thu, 7 May 2015 13:26:37 +0100
|
||||||
|
Subject: [PATCH] gdk: Use RGBA visual if there is one
|
||||||
|
|
||||||
|
The condition check for the has_rgba_visual flag is reversed, and thus
|
||||||
|
we relied on drivers returning an ARGB visual first by default.
|
||||||
|
|
||||||
|
Referenced by: https://bugzilla.redhat.com/show_bug.cgi?id=1206960
|
||||||
|
---
|
||||||
|
clutter/gdk/clutter-backend-gdk.c | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/clutter/gdk/clutter-backend-gdk.c b/clutter/gdk/clutter-backend-gdk.c
|
||||||
|
index 5b88d32..b4f7f1c 100644
|
||||||
|
--- a/clutter/gdk/clutter-backend-gdk.c
|
||||||
|
+++ b/clutter/gdk/clutter-backend-gdk.c
|
||||||
|
@@ -334,7 +334,8 @@ clutter_backend_gdk_get_display (ClutterBackend *backend,
|
||||||
|
gboolean has_rgba_visual;
|
||||||
|
gboolean res;
|
||||||
|
|
||||||
|
- has_rgba_visual = gdk_screen_get_rgba_visual (backend_gdk->screen) == NULL;
|
||||||
|
+ /* We default to an RGBA visual if there is one */
|
||||||
|
+ has_rgba_visual = gdk_screen_get_rgba_visual (backend_gdk->screen) != NULL;
|
||||||
|
|
||||||
|
CLUTTER_NOTE (BACKEND, "Alpha on Cogl swap chain: %s",
|
||||||
|
has_rgba_visual ? "enabled" : "disabled");
|
||||||
|
--
|
||||||
|
2.4.0
|
||||||
|
|
@ -8,13 +8,14 @@
|
|||||||
|
|
||||||
Name: clutter
|
Name: clutter
|
||||||
Version: 1.22.0
|
Version: 1.22.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Open Source software library for creating rich graphical user interfaces
|
Summary: Open Source software library for creating rich graphical user interfaces
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://www.clutter-project.org/
|
URL: http://www.clutter-project.org/
|
||||||
Source0: http://download.gnome.org/sources/clutter/1.22/clutter-%{version}.tar.xz
|
Source0: http://download.gnome.org/sources/clutter/1.22/clutter-%{version}.tar.xz
|
||||||
|
Patch0: 0001-gdk-Use-RGBA-visual-if-there-is-one.patch
|
||||||
|
|
||||||
BuildRequires: glib2-devel mesa-libGL-devel pkgconfig pango-devel
|
BuildRequires: glib2-devel mesa-libGL-devel pkgconfig pango-devel
|
||||||
BuildRequires: cairo-gobject-devel gdk-pixbuf2-devel atk-devel
|
BuildRequires: cairo-gobject-devel gdk-pixbuf2-devel atk-devel
|
||||||
@ -78,6 +79,7 @@ the functionality of the installed clutter package.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
@ -129,6 +131,9 @@ find %{buildroot} -name '*.la' -delete
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 07 2015 Kalev Lember <kalevlember@gmail.com> - 1.22.0-2
|
||||||
|
- gdk: Use RGBA visual if there is one (#1206960)
|
||||||
|
|
||||||
* Mon Mar 23 2015 Kalev Lember <kalevlember@gmail.com> - 1.22.0-1
|
* Mon Mar 23 2015 Kalev Lember <kalevlember@gmail.com> - 1.22.0-1
|
||||||
- Update to 1.22.0
|
- Update to 1.22.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user