[five-or-more] patch to reduce blurriness in preview balls
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [five-or-more] patch to reduce blurriness in preview balls
- Date: Wed, 25 Jun 2014 23:58:07 +0000 (UTC)
commit 0e8f596f06c4c622ab0dcf44e9dd23a42a017f9a
Author: Ben Asselstine <ben-gnome nym hush com>
Date:   Wed Jun 25 09:51:00 2014 -0500
    patch to reduce blurriness in preview balls
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732232
 src/glines.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/glines.c b/src/glines.c
index f3b9500..b729559 100644
--- a/src/glines.c
+++ b/src/glines.c
@@ -318,9 +318,9 @@ refresh_preview_surfaces (void)
   }
 
   for (i = 0; i < 7; i++) {
-    preview_surfaces[i] = gdk_window_create_similar_surface (gtk_widget_get_window (widget),
-                                                             CAIRO_CONTENT_COLOR_ALPHA,
-                                                             PREVIEW_IMAGE_WIDTH, PREVIEW_IMAGE_HEIGHT);
+    preview_surfaces[i] = gdk_window_create_similar_image_surface (gtk_widget_get_window (widget),
+                                                                   CAIRO_FORMAT_ARGB32,
+                                                                   PREVIEW_IMAGE_WIDTH, 
PREVIEW_IMAGE_HEIGHT, 1);
     cr = cairo_create (preview_surfaces[i]);
     gdk_cairo_set_source_rgba (cr, &bg);
     gdk_cairo_rectangle (cr, &preview_rect);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]