[gtk+/wip/matthiasc/fancy-overlay] Correct a comment



commit a4071fdd1115c08b71c1a4910eb50de17a2a63da
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Sep 2 20:45:28 2017 -0400

    Correct a comment

 gtk/gtkoverlay.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index a05d419..e7ed1a1 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -650,19 +650,19 @@ gtk_overlay_snapshot (GtkWidget   *widget,
 
   main_widget = gtk_bin_get_child (GTK_BIN (widget));
 
-  /* invert */
+  /* hardcode grayscale for now */
 #define R 0.2126
 #define G 0.7152
 #define B 0.0722
 
   value = 1.0;
-      graphene_matrix_init_from_float (&matrix, (float[16]) {
+  graphene_matrix_init_from_float (&matrix, (float[16]) {
                                            1.0 - (1.0 - R) * value, R * value, R * value, 0.0,
                                            G * value, 1.0 - (1.0 - G) * value, G * value, 0.0,
                                            B * value, B * value, 1.0 - (1.0 - B) * value, 0.0,
                                            0.0, 0.0, 0.0, 1.0
                                        });
-      graphene_vec4_init (&offset, 0.0, 0.0, 0.0, 0.0);
+  graphene_vec4_init (&offset, 0.0, 0.0, 0.0, 0.0);
 
   gtk_widget_get_allocation (widget, &alloc);
   graphene_rect_init (&bounds, effect_alloc.x, effect_alloc.y, effect_alloc.width, effect_alloc.height);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]