mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
directfb: drop cairo < 1.6 dependency
This removes the cairo's versions checks < 1.6 since GTK+ now requires cairo >= 1.6. Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
This commit is contained in:
parent
f8d42326ea
commit
59d6e84459
@ -1673,11 +1673,7 @@ gdk_directfb_ref_cairo_surface (GdkDrawable *drawable)
|
||||
if (!impl->cairo_surface) {
|
||||
IDirectFBSurface *surface;
|
||||
g_assert (impl->surface != NULL);
|
||||
#if defined(CAIRO_VERSION) && CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1,5,5)
|
||||
impl->surface->GetSubSurface (impl->surface, NULL, &surface);
|
||||
#else
|
||||
surface = impl->surface;
|
||||
#endif
|
||||
if (surface) {
|
||||
impl->cairo_surface = cairo_directfb_surface_create (dfb, surface);
|
||||
if (impl->cairo_surface) {
|
||||
@ -1685,9 +1681,7 @@ gdk_directfb_ref_cairo_surface (GdkDrawable *drawable)
|
||||
&gdk_directfb_cairo_key, drawable,
|
||||
gdk_directfb_cairo_surface_destroy);
|
||||
}
|
||||
#if defined(CAIRO_VERSION) && CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1,5,5)
|
||||
surface->Release (surface);
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
cairo_surface_reference (impl->cairo_surface);
|
||||
|
Loading…
Reference in New Issue
Block a user