]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/prtview/stdafx.h
uncrustify! now the code is only ugly on the *inside*
[xonotic/netradiant.git] / contrib / prtview / stdafx.h
index 2fddbdc9de274ab1530ff94027e610d023d7a913..5a0ceb2b497024105524001d8ff219ed245d8c1a 100644 (file)
@@ -1,28 +1,28 @@
 /*
-PrtView plugin for GtkRadiant
-Copyright (C) 2001 Geoffrey Dewan, Loki software and qeradiant.com
+   PrtView plugin for GtkRadiant
+   Copyright (C) 2001 Geoffrey Dewan, Loki software and qeradiant.com
 
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or (at your option) any later version.
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
 
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-Lesser General Public License for more details.
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
 
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-*/
+   You should have received a copy of the GNU Lesser General Public
+   License along with this library; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
 
 #ifndef __PRTVIEW_AFX_H__
 #define __PRTVIEW_AFX_H__
 
 #include <gtk/gtk.h>
 
-#if defined(__linux__) || defined(__APPLE__)
+#if defined( __linux__ ) || defined( __APPLE__ )
 #include <GL/glx.h>
 
 // Necessary for proper boolean type declaration
@@ -32,12 +32,12 @@ typedef guint32 COLORREF;
 typedef void* LPVOID;
 typedef char* LPCSTR;
 typedef void* HMODULE;
-typedef int    BOOL;
+typedef int BOOL;
 
-#define RGB(r, g, b) ((guint32)(((guint8) (r) | ((guint16) (g) << 8))|(((guint32) (guint8) (b)) << 16)))
-#define GetRValue(rgb)      ((guint8)(rgb))
-#define GetGValue(rgb)      ((guint8)(((guint16)(rgb)) >> 8))
-#define GetBValue(rgb)      ((guint8)((rgb)>>16))
+#define RGB( r, g, b ) ( (guint32)( ( (guint8) ( r ) | ( (guint16) ( g ) << 8 ) ) | ( ( (guint32) (guint8) ( b ) ) << 16 ) ) )
+#define GetRValue( rgb )      ( (guint8)( rgb ) )
+#define GetGValue( rgb )      ( (guint8)( ( (guint16)( rgb ) ) >> 8 ) )
+#define GetBValue( rgb )      ( (guint8)( ( rgb ) >> 16 ) )
 
 #define _MAX_PATH PATH_MAX
 
@@ -60,17 +60,17 @@ typedef int         BOOL;
 #include "gtkdlgs.h"
 #include "prtview.h"
 #include "portals.h"
-#include "resource.h"          // main symbols
+#include "resource.h"       // main symbols
 
 #define MSG_PREFIX "Portal Viewer plugin: "
 #define PRTVIEW_MINOR "prtview"
 
-#define UPDATE_2D (W_XY | W_XZ | W_YZ)
-#define UPDATE_3D (W_CAMERA)
-#define UPDATE_ALL (UPDATE_2D | UPDATE_3D)
+#define UPDATE_2D ( W_XY | W_XZ | W_YZ )
+#define UPDATE_3D ( W_CAMERA )
+#define UPDATE_ALL ( UPDATE_2D | UPDATE_3D )
 
-int INIGetInt(const char *key, int def);
-void INISetInt(const char *key, int val, const char *comment = NULL);
+int INIGetInt( const char *key, int def );
+void INISetInt( const char *key, int val, const char *comment = NULL );
 
 extern bool interfaces_started;