From 82e546da0db147183ef25e2c1e18f295c622e04f Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 14 Jun 2010 19:17:38 +0000 Subject: x11_common: Consistently use "None" instead of "NULL" for X resources git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31422 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libvo') diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 9fcd4f3f05..9c15c922d7 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -724,17 +724,17 @@ void vo_x11_uninit(struct vo *vo) if (x11->window != None) vo_showcursor(x11->display, x11->window); - if (x11->f_gc) + if (x11->f_gc != None) { XFreeGC(vo->x11->display, x11->f_gc); - x11->f_gc = NULL; + x11->f_gc = None; } { - if (x11->vo_gc) + if (x11->vo_gc != None) { XSetBackground(vo->x11->display, x11->vo_gc, 0); XFreeGC(vo->x11->display, x11->vo_gc); - x11->vo_gc = NULL; + x11->vo_gc = None; } if (x11->window != None) { @@ -1002,7 +1002,7 @@ static Window vo_x11_create_smooth_window(struct vo_x11_state *x11, Window mRoot XCreateWindow(x11->display, x11->rootwin, x, y, width, height, 0, depth, CopyFromParent, vis, xswamask, &xswa); XSetWMProtocols(x11->display, ret_win, &x11->XAWM_DELETE_WINDOW, 1); - if (!x11->f_gc) + if (x11->f_gc == None) x11->f_gc = XCreateGC(x11->display, ret_win, 0, 0); XSetForeground(x11->display, x11->f_gc, 0); @@ -1116,7 +1116,7 @@ void vo_x11_clearwindow_part(struct vo *vo, Window vo_window, Display *mDisplay = vo->x11->display; int u_dheight, u_dwidth, left_ov, left_ov2; - if (!x11->f_gc) + if (x11->f_gc == None) return; u_dheight = use_fs ? opts->vo_screenheight : vo->dheight; @@ -1146,7 +1146,7 @@ void vo_x11_clearwindow(struct vo *vo, Window vo_window) { struct vo_x11_state *x11 = vo->x11; struct MPOpts *opts = vo->opts; - if (!x11->f_gc) + if (x11->f_gc == None) return; XFillRectangle(x11->display, vo_window, x11->f_gc, 0, 0, opts->vo_screenwidth, opts->vo_screenheight); -- cgit v1.2.3