forked from AuroraMiddleware/gtk
Set have_render_with_trapezoids to GDK_YES when we have a new enough
2005-02-20 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): Set have_render_with_trapezoids to GDK_YES when we have a new enough Render extension. (#167965,Billy Biggs)
This commit is contained in:
parent
a1670a154a
commit
5a7cb2374a
@ -1,5 +1,9 @@
|
||||
2005-02-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
|
||||
Set have_render_with_trapezoids to GDK_YES when we have
|
||||
a new enough Render extension. (#167965,Billy Biggs)
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
|
||||
the last user interaction when focusing the window. (#166379,
|
||||
Elijah Newren)
|
||||
|
@ -1,5 +1,9 @@
|
||||
2005-02-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
|
||||
Set have_render_with_trapezoids to GDK_YES when we have
|
||||
a new enough Render extension. (#167965,Billy Biggs)
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
|
||||
the last user interaction when focusing the window. (#166379,
|
||||
Elijah Newren)
|
||||
|
@ -1,5 +1,9 @@
|
||||
2005-02-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
|
||||
Set have_render_with_trapezoids to GDK_YES when we have
|
||||
a new enough Render extension. (#167965,Billy Biggs)
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
|
||||
the last user interaction when focusing the window. (#166379,
|
||||
Elijah Newren)
|
||||
|
@ -336,9 +336,8 @@ _gdk_x11_have_render_with_trapezoids (GdkDisplay *display)
|
||||
|
||||
if (x11display->have_render_with_trapezoids == GDK_UNKNOWN)
|
||||
{
|
||||
if (!_gdk_x11_have_render (display))
|
||||
x11display->have_render_with_trapezoids = GDK_NO;
|
||||
else
|
||||
x11display->have_render_with_trapezoids = GDK_NO;
|
||||
if (_gdk_x11_have_render (display))
|
||||
{
|
||||
/*
|
||||
* Require protocol >= 0.4 for CompositeTrapezoids support.
|
||||
@ -350,10 +349,11 @@ _gdk_x11_have_render_with_trapezoids (GdkDisplay *display)
|
||||
|
||||
if (XRenderQueryVersion (xdisplay, &major_version,
|
||||
&minor_version))
|
||||
if ((major_version < XRENDER_TETRAPEZOIDS_MAJOR) ||
|
||||
((major_version == XRENDER_TETRAPEZOIDS_MAJOR) &&
|
||||
(minor_version < XRENDER_TETRAPEZOIDS_MINOR)))
|
||||
x11display->have_render_with_trapezoids = GDK_NO;
|
||||
{
|
||||
if ((major_version == XRENDER_TETRAPEZOIDS_MAJOR) &&
|
||||
(minor_version >= XRENDER_TETRAPEZOIDS_MINOR))
|
||||
x11display->have_render_with_trapezoids = GDK_YES;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user