changeset 31356:c3e536cf595b

Consistently use "None" instead of "NULL" for X resources.
author reimar
date Mon, 14 Jun 2010 19:17:38 +0000
parents 2ee6c0ee2d41
children 0b68c2893cac
files libvo/x11_common.c
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Mon Jun 14 17:17:04 2010 +0000
+++ b/libvo/x11_common.c	Mon Jun 14 19:17:38 2010 +0000
@@ -745,8 +745,8 @@
 }
 
 Window vo_window = None;
-GC vo_gc = NULL;
-GC f_gc = NULL;
+GC vo_gc = None;
+GC f_gc = None;
 XSizeHints vo_hint;
 
 void vo_x11_uninit(void)
@@ -755,17 +755,17 @@
     if (vo_window != None)
         vo_showcursor(mDisplay, vo_window);
 
-    if (f_gc)
+    if (f_gc != None)
     {
         XFreeGC(mDisplay, f_gc);
-        f_gc = NULL;
+        f_gc = None;
     }
     {
-        if (vo_gc)
+        if (vo_gc != None)
         {
             XSetBackground(mDisplay, vo_gc, 0);
             XFreeGC(mDisplay, vo_gc);
-            vo_gc = NULL;
+            vo_gc = None;
         }
         if (vo_window != None)
         {
@@ -1043,7 +1043,7 @@
         XCreateWindow(mDisplay, mRootWin, x, y, width, height, 0, depth,
                       CopyFromParent, vis, xswamask, &xswa);
     XSetWMProtocols(mDisplay, ret_win, &XAWM_DELETE_WINDOW, 1);
-    if (!f_gc)
+    if (f_gc == None)
         f_gc = XCreateGC(mDisplay, ret_win, 0, 0);
     XSetForeground(mDisplay, f_gc, 0);
 
@@ -1151,7 +1151,7 @@
 {
     int u_dheight, u_dwidth, left_ov, left_ov2;
 
-    if (!f_gc)
+    if (f_gc == None)
         return;
 
     u_dheight = use_fs ? vo_screenheight : vo_dheight;
@@ -1179,7 +1179,7 @@
 
 void vo_x11_clearwindow(Display * mDisplay, Window vo_window)
 {
-    if (!f_gc)
+    if (f_gc == None)
         return;
     XFillRectangle(mDisplay, vo_window, f_gc, 0, 0, vo_screenwidth,
                    vo_screenheight);