changeset 35678:2261c68180a7

Make variable wsScreenDepth static. The information dropped from interface.c is already being printed in wsXInit().
author ib
date Thu, 17 Jan 2013 17:41:44 +0000
parents 539f3d45dcf5
children 23183b261ca9
files gui/interface.c gui/wm/ws.c gui/wm/ws.h
diffstat 3 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Thu Jan 17 17:36:16 2013 +0000
+++ b/gui/interface.c	Thu Jan 17 17:41:44 2013 +0000
@@ -189,7 +189,6 @@
     wsSetShape(&guiApp.mainWindow, guiApp.main.Mask.Image);
     wsXDNDMakeAwareness(&guiApp.mainWindow);
 
-    mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[interface] screen depth: %d\n", wsScreenDepth);
     mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[interface] mainWindow ID: 0x%x\n", (int)guiApp.mainWindow.WindowID);
     mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[interface] videoWindow ID: 0x%x\n", (int)guiApp.videoWindow.WindowID);
 
--- a/gui/wm/ws.c	Thu Jan 17 17:36:16 2013 +0000
+++ b/gui/wm/ws.c	Thu Jan 17 17:41:44 2013 +0000
@@ -87,7 +87,7 @@
 static int wsScreen;
 static Window wsRootWin;
 
-int wsScreenDepth;
+static int wsScreenDepth;
 static int wsRedMask;
 static int wsGreenMask;
 static int wsBlueMask;
--- a/gui/wm/ws.h	Thu Jan 17 17:36:16 2013 +0000
+++ b/gui/wm/ws.h	Thu Jan 17 17:41:44 2013 +0000
@@ -171,8 +171,6 @@
 
 extern Display *wsDisplay;
 
-extern int wsScreenDepth;
-
 // ----------------------------------------------------------------------------------------------
 void wsXDone(void);
 void wsXInit(Display *display);