[gtk+] Trivial formatting fix



commit 4d84e7a8f774f1c82d5ee3e6dd460a6d61024525
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Mar 11 18:30:14 2016 -0500

    Trivial formatting fix

 gdk/gdk.c       |   42 +++++++++++++++++++++---------------------
 gdk/gdkwindow.c |    7 ++++---
 2 files changed, 25 insertions(+), 24 deletions(-)
---
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 25e6287..c9c3536 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -138,31 +138,31 @@ static GCallback gdk_threads_lock = NULL;
 static GCallback gdk_threads_unlock = NULL;
 
 static const GDebugKey gdk_gl_keys[] = {
-  {"disable",               GDK_GL_DISABLE},
-  {"always",                GDK_GL_ALWAYS},
-  {"software-draw",         GDK_GL_SOFTWARE_DRAW_GL | GDK_GL_SOFTWARE_DRAW_SURFACE},
-  {"software-draw-gl",      GDK_GL_SOFTWARE_DRAW_GL},
-  {"software-draw-surface", GDK_GL_SOFTWARE_DRAW_SURFACE},
-  {"texture-rectangle",     GDK_GL_TEXTURE_RECTANGLE},
-  {"legacy",                GDK_GL_LEGACY},
+  { "disable",               GDK_GL_DISABLE },
+  { "always",                GDK_GL_ALWAYS },
+  { "software-draw",         GDK_GL_SOFTWARE_DRAW_GL | GDK_GL_SOFTWARE_DRAW_SURFACE} ,
+  { "software-draw-gl",      GDK_GL_SOFTWARE_DRAW_GL },
+  { "software-draw-surface", GDK_GL_SOFTWARE_DRAW_SURFACE },
+  { "texture-rectangle",     GDK_GL_TEXTURE_RECTANGLE },
+  { "legacy",                GDK_GL_LEGACY }
 };
 
 #ifdef G_ENABLE_DEBUG
 static const GDebugKey gdk_debug_keys[] = {
-  {"events",        GDK_DEBUG_EVENTS},
-  {"misc",          GDK_DEBUG_MISC},
-  {"dnd",           GDK_DEBUG_DND},
-  {"xim",           GDK_DEBUG_XIM},
-  {"nograbs",       GDK_DEBUG_NOGRABS},
-  {"input",         GDK_DEBUG_INPUT},
-  {"cursor",        GDK_DEBUG_CURSOR},
-  {"multihead",     GDK_DEBUG_MULTIHEAD},
-  {"xinerama",      GDK_DEBUG_XINERAMA},
-  {"draw",          GDK_DEBUG_DRAW},
-  {"eventloop",     GDK_DEBUG_EVENTLOOP},
-  {"frames",        GDK_DEBUG_FRAMES},
-  {"settings",      GDK_DEBUG_SETTINGS},
-  {"opengl",        GDK_DEBUG_OPENGL},
+  { "events",        GDK_DEBUG_EVENTS },
+  { "misc",          GDK_DEBUG_MISC },
+  { "dnd",           GDK_DEBUG_DND },
+  { "xim",           GDK_DEBUG_XIM },
+  { "nograbs",       GDK_DEBUG_NOGRABS },
+  { "input",         GDK_DEBUG_INPUT },
+  { "cursor",        GDK_DEBUG_CURSOR },
+  { "multihead",     GDK_DEBUG_MULTIHEAD },
+  { "xinerama",      GDK_DEBUG_XINERAMA },
+  { "draw",          GDK_DEBUG_DRAW },
+  { "eventloop",     GDK_DEBUG_EVENTLOOP },
+  { "frames",        GDK_DEBUG_FRAMES },
+  { "settings",      GDK_DEBUG_SETTINGS },
+  { "opengl",        GDK_DEBUG_OPENGL }
 };
 
 static gboolean
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 8236f38..60ed2ee 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -3703,9 +3703,10 @@ gdk_window_process_updates_internal (GdkWindow *window)
          expose_region = cairo_region_copy (window->active_update_area);
 
           /* Sometimes we can't just paint only the new area, as the windowing system
-             requires more to be repainted. For instance, with opengl you typically
-             repaint all of each frame each time and then swap the buffer, although
-             there are extensions that allow us to reuse part of an old frame */
+           * requires more to be repainted. For instance, with OpenGL you typically
+           * repaint all of each frame each time and then swap the buffer, although
+           * there are extensions that allow us to reuse part of an old frame.
+           */
           if (GDK_WINDOW_IMPL_GET_CLASS (window->impl)->invalidate_for_new_frame)
             GDK_WINDOW_IMPL_GET_CLASS (window->impl)->invalidate_for_new_frame (window, expose_region);
 


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