# HG changeset patch # User ib # Date 1395850731 0 # Node ID 91f11a849d4d495bfbe7e7b2640e1f572bb51de2 # Parent 6c3562d643a804607020d3261db973ea6f3e9581 Remove unnecessary, bothering parentheses. diff -r 6c3562d643a8 -r 91f11a849d4d gui/interface.c --- a/gui/interface.c Wed Mar 26 15:09:54 2014 +0000 +++ b/gui/interface.c Wed Mar 26 16:18:51 2014 +0000 @@ -749,7 +749,7 @@ // ...without video there will be no call to GUI_SETUP_VIDEO_WINDOW if (!guiInfo.VideoWindow) { wsWindowVisibility(&guiApp.videoWindow, wsHideWindow); - btnSet(evFullScreen, (gtkLoadFullscreen ? btnPressed : btnReleased)); + btnSet(evFullScreen, gtkLoadFullscreen ? btnPressed : btnReleased); } // ...option variable fullscreen determines whether MPlayer will handle @@ -877,7 +877,7 @@ } else { wsWindowVisibility(&guiApp.videoWindow, wsHideWindow); guiInfo.VideoWindow = False; - btnSet(evFullScreen, (gtkLoadFullscreen ? btnPressed : btnReleased)); + btnSet(evFullScreen, gtkLoadFullscreen ? btnPressed : btnReleased); } gui(GUI_SET_STATE, (void *)GUI_STOP); @@ -1161,7 +1161,7 @@ if (name) { mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_GUI_MSG_LoadingSubtitle, name); - subdata = sub_read_file(name, (guiInfo.sh_video ? guiInfo.sh_video->fps : 0)); + subdata = sub_read_file(name, guiInfo.sh_video ? guiInfo.sh_video->fps : 0); if (!subdata) gmp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_CantLoadSub, name); diff -r 6c3562d643a8 -r 91f11a849d4d gui/skin/skin.c --- a/gui/skin/skin.c Wed Mar 26 15:09:54 2014 +0000 +++ b/gui/skin/skin.c Wed Mar 26 16:18:51 2014 +0000 @@ -359,7 +359,7 @@ if (currWin->width == 0 || currWin->height == 0) return 1; - mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[skin] %s: %dx%d\n", (is_video && w && h ? "size" : " bitmap"), currWin->width, currWin->height); + mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[skin] %s: %dx%d\n", is_video && w && h ? "size" : " bitmap", currWin->width, currWin->height); if (!is_video) { if (!bpRenderMask(&currWin->Bitmap, &currWin->Mask)) { diff -r 6c3562d643a8 -r 91f11a849d4d gui/ui/actions.c --- a/gui/ui/actions.c Wed Mar 26 15:09:54 2014 +0000 +++ b/gui/ui/actions.c Wed Mar 26 16:18:51 2014 +0000 @@ -663,7 +663,7 @@ if (guiInfo.AudioChannels < 2 || guiInfo.AudioPassthrough) btnSet(evSetBalance, btnDisabled); - btnSet(evFullScreen, (guiApp.videoWindow.isFullScreen ? btnPressed : btnReleased)); + btnSet(evFullScreen, guiApp.videoWindow.isFullScreen ? btnPressed : btnReleased); wsWindowLayer(wsDisplay, guiApp.mainWindow.WindowID, guiApp.videoWindow.isFullScreen); wsWindowLayer(wsDisplay, guiApp.menuWindow.WindowID, guiApp.videoWindow.isFullScreen); diff -r 6c3562d643a8 -r 91f11a849d4d gui/wm/ws.c --- a/gui/wm/ws.c Wed Mar 26 15:09:54 2014 +0000 +++ b/gui/wm/ws.c Wed Mar 26 16:18:51 2014 +0000 @@ -1328,7 +1328,7 @@ { win->xImage = XCreateImage(wsDisplay, win->VisualInfo.visual, win->VisualInfo.depth, ZPixmap, 0, 0, w, h, - (wsScreenDepth == 3) ? 32 : wsScreenDepth, + wsScreenDepth == 3 ? 32 : wsScreenDepth, 0); if ((win->xImage->data = malloc(win->xImage->bytes_per_line * win->xImage->height)) == NULL) {