[gtk+] mir: only paint background if window has one
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] mir: only paint background if window has one
- Date: Thu, 5 Feb 2015 16:28:20 +0000 (UTC)
commit 9a84c3e0f5f8fe63de0ea9a05d4f2809329dcc20
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Fri Dec 12 03:01:38 2014 +0100
mir: only paint background if window has one
gdk/mir/gdkmirwindowimpl.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index 98ec525..fccba87 100644
--- a/gdk/mir/gdkmirwindowimpl.c
+++ b/gdk/mir/gdkmirwindowimpl.c
@@ -382,13 +382,13 @@ gdk_mir_window_impl_ref_cairo_surface (GdkWindow *window)
impl->cairo_surface = cairo_surface_reference (cairo_surface);
/* Draw background */
- c = cairo_create (impl->cairo_surface);
if (impl->background)
- cairo_set_source (c, impl->background);
- else
- cairo_set_source_rgb (c, 1.0, 0.0, 0.0);
- cairo_paint (c);
- cairo_destroy (c);
+ {
+ c = cairo_create (impl->cairo_surface);
+ cairo_set_source (c, impl->background);
+ cairo_paint (c);
+ cairo_destroy (c);
+ }
return cairo_surface;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]