Changeset 302

Show
Ignore:
Timestamp:
07/25/08 02:31:37 (2 months ago)
Author:
lordhavoc
Message:

ported over the 1.5 branch version of q3map2 which is newer
made Visual Studio files work in VS2005 Express
fixed a ton of warnings in VS2005 Express
fixed some compile problems on OpenSUSE 11.0

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GtkRadiant/trunk/SConscript.q3map2

    r200 r302  
    1111settings.SetupEnvironment( env, config['name'] ) 
    1212env.Prepend( CPPPATH = [ '#tools/quake3/common' ] ) 
    13 env.Append( LIBS = [ 'pthread', 'png', 'jpeg' ] ) 
     13env.Append( LIBS = [ 'pthread', 'png', 'jpeg', 'mhash' ] ) 
    1414proj = utils.vcproj( os.path.join( GetLaunchDir(), 'tools/quake3/q3map2/q3map2.vcproj' ) ) 
    1515objects = lib_objects 
  • GtkRadiant/trunk/contrib/bkgrnd2d/dialog.cpp

    r292 r302  
    148148//TODO patern gets fucked up sometimes if empty 
    149149        newfile = g_FuncTable.m_pfnFileDialog(pDialogWnd,TRUE, 
    150                                                                   _("Load Background Image"),browsedir,FILETYPE_KEY); 
     150                                                                  _("Load Background Image"),browsedir,FILETYPE_KEY, NULL); 
    151151        if(!newfile) { 
    152152                Syn_Printf(MSG_PREFIX "newfile = NULL\n"); 
  • GtkRadiant/trunk/contrib/camera/camera.vcproj

    r252 r302  
    1 <?xml version="1.0" ?><VisualStudioProject Name="camera" ProjectGUID="{A43B5811-4BCC-483A-BDAC-F5721DCF9B4A}" ProjectType="Visual C++" RootNamespace="camera" Version="8.00"> 
     1<?xml version="1.0" encoding="Windows-1252"?> 
     2<VisualStudioProject 
     3        ProjectType="Visual C++" 
     4        Version="8.00" 
     5        Name="camera" 
     6        ProjectGUID="{A43B5811-4BCC-483A-BDAC-F5721DCF9B4A}" 
     7        RootNamespace="camera" 
     8        > 
    29        <Platforms> 
    3                 <Platform Name="Win32"/> 
     10                <Platform 
     11                        Name="Win32" 
     12                /> 
    413        </Platforms> 
    514        <ToolFiles> 
    615        </ToolFiles> 
    716        <Configurations> 
    8                 <Configuration CharacterSet="2" ConfigurationType="2" IntermediateDirectory="$(SolutionDir)\build\intermediate\$(ConfigurationName)\$(ProjectName)" Name="Debug|Win32" OutputDirectory="$(SolutionDir)\install\modules"> 
    9                         <Tool Name="VCPreBuildEventTool"/> 
    10                         <Tool Name="VCCustomBuildTool"/> 
    11                         <Tool Name="VCXMLDataGeneratorTool"/> 
    12                         <Tool Name="VCWebServiceProxyGeneratorTool"/> 
    13                         <Tool Name="VCMIDLTool"/> 
    14                         <Tool AdditionalIncludeDirectories="&quot;$(SolutionDir)\include&quot;;&quot;$(SolutionDir)\libs&quot;;&quot;$(SolutionDir)\..\STLPort\stlport&quot;;&quot;$(SolutionDir)\..\gtk2\include&quot;;&quot;$(SolutionDir)\..\gtk2\include\glib-2.0&quot;;&quot;$(SolutionDir)\..\gtk2\lib\glib-2.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\lib\gtk-2.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\include\gtk-2.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\cairo&quot;;&quot;$(SolutionDir)\..\gtk2\include\pango-1.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\atk-1.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\gtkglext-1.0&quot;;&quot;$(SolutionDir)\..\libxml2\include&quot;" BasicRuntimeChecks="3" DebugInformationFormat="4" Detect64BitPortabilityProblems="true" DisableSpecificWarnings="4996;4244;4267" MinimalRebuild="true" Name="VCCLCompilerTool" Optimization="0" PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" RuntimeLibrary="3" WarningLevel="3"/> 
    15                         <Tool Name="VCManagedResourceCompilerTool"/> 
    16                         <Tool Name="VCResourceCompilerTool"/> 
    17                         <Tool Name="VCPreLinkEventTool"/> 
    18                         <Tool AdditionalDependencies="synapse.lib splines.lib libxml2.lib glib-2.0.lib gobject-2.0.lib gtk-win32-2.0.lib" AdditionalLibraryDirectories="&quot;$(SolutionDir)\..\libxml2\lib&quot;;&quot;$(SolutionDir)\..\gtk2\lib&quot;;&quot;$(SolutionDir)\build\$(ConfigurationName)\libs&quot;" GenerateDebugInformation="true" ModuleDefinitionFile="camera.def" Name="VCLinkerTool" TargetMachine="1"/> 
    19                         <Tool Name="VCALinkTool"/> 
    20                         <Tool Name="VCManifestTool"/> 
    21                         <Tool Name="VCXDCMakeTool"/> 
    22                         <Tool Name="VCBscMakeTool"/> 
    23                         <Tool Name="VCFxCopTool"/> 
    24                         <Tool Name="VCAppVerifierTool"/> 
    25                         <Tool Name="VCWebDeploymentTool"/> 
    26                         <Tool Name="VCPostBuildEventTool"/> 
     17                <Configuration 
     18                        Name="Debug|Win32" 
     19                        OutputDirectory="$(SolutionDir)\install\modules" 
     20                        IntermediateDirectory="$(SolutionDir)\build\intermediate\$(ConfigurationName)\$(ProjectName)" 
     21                        ConfigurationType="2" 
     22                        CharacterSet="2" 
     23                        > 
     24                        <Tool 
     25                                Name="VCPreBuildEventTool" 
     26                        /> 
     27                        <Tool 
     28                                Name="VCCustomBuildTool" 
     29                        /> 
     30                        <Tool 
     31                                Name="VCXMLDataGeneratorTool" 
     32                        /> 
     33                        <Tool 
     34                                Name="VCWebServiceProxyGeneratorTool" 
     35                        /> 
     36                        <Tool 
     37                                Name="VCMIDLTool" 
     38                        /> 
     39                        <Tool 
     40                                Name="VCCLCompilerTool" 
     41                                Optimization="0" 
     42                                AdditionalIncludeDirectories="&quot;$(SolutionDir)\include&quot;;&quot;$(SolutionDir)\libs&quot;;&quot;$(SolutionDir)\..\STLPort\stlport&quot;;&quot;$(SolutionDir)\..\gtk2\include&quot;;&quot;$(SolutionDir)\..\gtk2\include\glib-2.0&quot;;&quot;$(SolutionDir)\..\gtk2\lib\glib-2.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\lib\gtk-2.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\include\gtk-2.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\cairo&quot;;&quot;$(SolutionDir)\..\gtk2\include\pango-1.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\atk-1.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\gtkglext-1.0&quot;;&quot;$(SolutionDir)\..\libxml2\include&quot;" 
     43                                PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" 
     44                                MinimalRebuild="true" 
     45                                BasicRuntimeChecks="3" 
     46                                RuntimeLibrary="3" 
     47                                WarningLevel="3" 
     48                                Detect64BitPortabilityProblems="true" 
     49                                DebugInformationFormat="4" 
     50                                DisableSpecificWarnings="4996;4244;4267" 
     51                        /> 
     52                        <Tool 
     53                                Name="VCManagedResourceCompilerTool" 
     54                        /> 
     55                        <Tool 
     56                                Name="VCResourceCompilerTool" 
     57                        /> 
     58                        <Tool 
     59                                Name="VCPreLinkEventTool" 
     60                        /> 
     61                        <Tool 
     62                                Name="VCLinkerTool" 
     63                                AdditionalDependencies="synapse.lib splines.lib libxml2.lib glib-2.0.lib gobject-2.0.lib gtk-win32-2.0.lib intl.lib" 
     64                                AdditionalLibraryDirectories="&quot;$(SolutionDir)\..\libxml2\lib&quot;;&quot;$(SolutionDir)\..\gtk2\lib&quot;;&quot;$(SolutionDir)\build\$(ConfigurationName)\libs&quot;" 
     65                                ModuleDefinitionFile="camera.def" 
     66                                GenerateDebugInformation="true" 
     67                                TargetMachine="1" 
     68                        /> 
     69                        <Tool 
     70                                Name="VCALinkTool" 
     71                        /> 
     72                        <Tool 
     73                                Name="VCManifestTool" 
     74                        /> 
     75                        <Tool 
     76                                Name="VCXDCMakeTool" 
     77                        /> 
     78                        <Tool 
     79                                Name="VCBscMakeTool" 
     80                        /> 
     81                        <Tool 
     82                                Name="VCFxCopTool" 
     83                        /> 
     84                        <Tool 
     85                                Name="VCAppVerifierTool" 
     86                        /> 
     87                        <Tool 
     88                                Name="VCWebDeploymentTool" 
     89                        /> 
     90                        <Tool 
     91                                Name="VCPostBuildEventTool" 
     92                        /> 
    2793                </Configuration> 
    28                 <Configuration CharacterSet="2" ConfigurationType="2" IntermediateDirectory="$(SolutionDir)\build\intermediate\$(ConfigurationName)\$(ProjectName)" Name="Release|Win32" OutputDirectory="$(SolutionDir)\install\modules"> 
    29                         <Tool Name="VCPreBuildEventTool"/> 
    30                         <Tool Name="VCCustomBuildTool"/> 
    31                         <Tool Name="VCXMLDataGeneratorTool"/> 
    32                         <Tool Name="VCWebServiceProxyGeneratorTool"/> 
    33                         <Tool Name="VCMIDLTool"/> 
    34                         <Tool AdditionalIncludeDirectories="&quot;$(SolutionDir)\include&quot;;&quot;$(SolutionDir)\libs&quot;;&quot;$(SolutionDir)\..\STLPort\stlport&quot;;&quot;$(SolutionDir)\..\gtk2\include&quot;;&quot;$(SolutionDir)\..\gtk2\include\glib-2.0&quot;;&quot;$(SolutionDir)\..\gtk2\lib\glib-2.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\lib\gtk-2.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\include\gtk-2.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\cairo&quot;;&quot;$(SolutionDir)\..\gtk2\include\pango-1.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\atk-1.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\gtkglext-1.0&quot;;&quot;$(SolutionDir)\..\libxml2\include&quot;" DebugInformationFormat="3" Detect64BitPortabilityProblems="true" DisableSpecificWarnings="4996;4244;4267" Name="VCCLCompilerTool" PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" RuntimeLibrary="2" WarningLevel="3"/> 
    35                         <Tool Name="VCManagedResourceCompilerTool"/> 
    36                         <Tool Name="VCResourceCompilerTool"/> 
    37                         <Tool Name="VCPreLinkEventTool"/> 
    38                         <Tool AdditionalDependencies="synapse.lib splines.lib libxml2.lib glib-2.0.lib gobject-2.0.lib gtk-win32-2.0.lib" AdditionalLibraryDirectories="&quot;$(SolutionDir)\..\libxml2\lib&quot;;&quot;$(SolutionDir)\..\gtk2\lib&quot;;&quot;$(SolutionDir)\build\$(ConfigurationName)\libs&quot;" EnableCOMDATFolding="2" GenerateDebugInformation="true" ModuleDefinitionFile="camera.def" Name="VCLinkerTool" OptimizeReferences="2" TargetMachine="1"/> 
    39                         <Tool Name="VCALinkTool"/> 
    40                         <Tool Name="VCManifestTool"/> 
    41                         <Tool Name="VCXDCMakeTool"/> 
    42                         <Tool Name="VCBscMakeTool"/> 
    43                         <Tool Name="VCFxCopTool"/> 
    44                         <Tool Name="VCAppVerifierTool"/> 
    45                         <Tool Name="VCWebDeploymentTool"/> 
    46                         <Tool Name="VCPostBuildEventTool"/> 
     94                <Configuration 
     95                        Name="Release|Win32" 
     96                        OutputDirectory="$(SolutionDir)\install\modules" 
     97                        IntermediateDirectory="$(SolutionDir)\build\intermediate\$(ConfigurationName)\$(ProjectName)" 
     98                        ConfigurationType="2" 
     99                        CharacterSet="2" 
     100                        > 
     101                        <Tool 
     102                                Name="VCPreBuildEventTool" 
     103                        /> 
     104                        <Tool 
     105                                Name="VCCustomBuildTool" 
     106                        /> 
     107                        <Tool 
     108                                Name="VCXMLDataGeneratorTool" 
     109                        /> 
     110                        <Tool 
     111                                Name="VCWebServiceProxyGeneratorTool" 
     112                        /> 
     113                        <Tool 
     114                                Name="VCMIDLTool" 
     115                        /> 
     116                        <Tool 
     117                                Name="VCCLCompilerTool" 
     118                                AdditionalIncludeDirectories="&quot;$(SolutionDir)\include&quot;;&quot;$(SolutionDir)\libs&quot;;&quot;$(SolutionDir)\..\STLPort\stlport&quot;;&quot;$(SolutionDir)\..\gtk2\include&quot;;&quot;$(SolutionDir)\..\gtk2\include\glib-2.0&quot;;&quot;$(SolutionDir)\..\gtk2\lib\glib-2.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\lib\gtk-2.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include&quot;;&quot;$(SolutionDir)\..\gtk2\include\gtk-2.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\cairo&quot;;&quot;$(SolutionDir)\..\gtk2\include\pango-1.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\atk-1.0&quot;;&quot;$(SolutionDir)\..\gtk2\include\gtkglext-1.0&quot;;&quot;$(SolutionDir)\..\libxml2\include&quot;" 
     119                                PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS" 
     120                                RuntimeLibrary="2" 
     121                                WarningLevel="3" 
     122                                Detect64BitPortabilityProblems="true" 
     123                                DebugInformationFormat="3" 
     124                                DisableSpecificWarnings="4996;4244;4267" 
     125                        /> 
     126                        <Tool 
     127                                Name="VCManagedResourceCompilerTool" 
     128                        /> 
     129                        <Tool 
     130                                Name="VCResourceCompilerTool" 
     131                        /> 
     132                        <Tool 
     133                                Name="VCPreLinkEventTool" 
     134                        /> 
     135                        <Tool 
     136                                Name="VCLinkerTool" 
     137                                AdditionalDependencies="synapse.lib splines.lib libxml2.lib glib-2.0.lib gobject-2.0.lib gtk-win32-2.0.lib intl.lib" 
     138                                AdditionalLibraryDirectories="&quot;$(SolutionDir)\..\libxml2\lib&quot;;&quot;$(SolutionDir)\..\gtk2\lib&quot;;&quot;$(SolutionDir)\build\$(ConfigurationName)\libs&quot;" 
     139                                ModuleDefinitionFile="camera.def" 
     140                                GenerateDebugInformation="true" 
     141                                OptimizeReferences="2" 
     142                                EnableCOMDATFolding="2" 
     143                                TargetMachine="1" 
     144                        /> 
     145                        <Tool 
     146                                Name="VCALinkTool" 
     147                        /> 
     148                        <Tool 
     149                                Name="VCManifestTool" 
     150                        /> 
     151                        <Tool 
     152                                Name="VCXDCMakeTool" 
     153                        /> 
     154                        <Tool 
     155                                Name="VCBscMakeTool" 
     156                        /> 
     157                        <Tool 
     158                                Name="VCFxCopTool" 
     159                        /> 
     160                        <Tool 
     161                                Name="VCAppVerifierTool" 
     162                        /> 
     163                        <Tool 
     164                                Name="VCWebDeploymentTool" 
     165                        /> 
     166                        <Tool 
     167                                Name="VCPostBuildEventTool" 
     168                        /> 
    47169                </Configuration> 
    48170        </Configurations> 
     
    50172        </References> 
    51173        <Files> 
    52                 <Filter Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" Name="Source Files"> 
    53                         <File RelativePath=".\camera.cpp"> 
    54                         </File> 
    55                         <File RelativePath=".\camera.def"> 
    56                         </File> 
    57                         <File RelativePath=".\dialogs.cpp"> 
    58                         </File> 
    59                         <File RelativePath=".\dialogs_common.cpp"> 
    60                         </File> 
    61                         <File RelativePath=".\funchandlers.cpp"> 
    62                         </File> 
    63                         <File RelativePath=".\listener.cpp"> 
    64                         </File> 
    65                         <File RelativePath=".\misc.cpp"> 
    66                         </File> 
    67                         <File RelativePath=".\renderer.cpp"> 
     174                <Filter 
     175                        Name="Source Files" 
     176                        Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" 
     177                        > 
     178                        <File 
     179                                RelativePath=".\camera.cpp" 
     180                                > 
     181                        </File> 
     182                        <File 
     183                                RelativePath=".\camera.def" 
     184                                > 
     185                        </File> 
     186                        <File 
     187                                RelativePath=".\dialogs.cpp" 
     188                                > 
     189                        </File> 
     190                        <File 
     191                                RelativePath=".\dialogs_common.cpp" 
     192                                > 
     193                        </File> 
     194                        <File 
     195                                RelativePath=".\funchandlers.cpp" 
     196                                > 
     197                        </File> 
     198                        <File 
     199                                RelativePath=".\listener.cpp" 
     200                                > 
     201                        </File> 
     202                        <File 
     203                                RelativePath=".\misc.cpp" 
     204                                > 
     205                        </File> 
     206                        <File 
     207                                RelativePath=".\renderer.cpp" 
     208                                > 
    68209                        </File> 
    69210                </Filter> 
    70                 <Filter Filter="h;hpp;hxx;hm;inl" Name="Header Files"> 
    71                         <File RelativePath=".\camera.h"> 
    72                         </File> 
    73                         <File RelativePath=".\dialogs.h"> 
    74                         </File> 
    75                         <File RelativePath=".\funchandlers.h"> 
    76                         </File> 
    77                         <File RelativePath=".\listener.h"> 
    78                         </File> 
    79                         <File RelativePath=".\misc.h"> 
    80                         </File> 
    81                         <File RelativePath=".\renderer.h"> 
     211                <Filter 
     212                        Name="Header Files" 
     213                        Filter="h;hpp;hxx;hm;inl" 
     214                        > 
     215                        <File 
     216                                RelativePath=".\camera.h" 
     217                                > 
     218                        </File> 
     219                        <File 
     220                                RelativePath=".\dialogs.h" 
     221                                > 
     222                        </File> 
     223                        <File 
     224                                RelativePath=".\funchandlers.h" 
     225                                > 
     226                        </File> 
     227                        <File 
     228                                RelativePath=".\listener.h" 
     229                                > 
     230                        </File> 
     231                        <File 
     232                                RelativePath=".\misc.h" 
     233                                > 
     234                        </File> 
     235                        <File 
     236                                RelativePath=".\renderer.h" 
     237                                > 
    82238                        </File> 
    83239                </Filter> 
    84                 <Filter Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" Name="Resource Files"> 
     240                <Filter 
     241                        Name="Resource Files" 
     242                        Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" 
     243                        > 
    85244                </Filter> 
    86245        </Files> 
  • GtkRadiant/trunk/contrib/camera/dialogs.cpp

    r292 r302  
    2626 
    2727#include "camera.h" 
     28 
     29#include <glib.h> 
     30#include <glib/gi18n.h> 
    2831 
    2932static GSList *g_pEditTypeRadio = NULL; 
  • GtkRadiant/trunk/contrib/camera/dialogs_common.cpp

    r185 r302  
    3737  
    3838        *loop = 0; 
    39         *ret = (int)data
     39        *ret = GPOINTER_TO_INT (data)
    4040} 
    4141 
  • GtkRadiant/trunk/contrib/camera/funchandlers.cpp

    r195 r302  
    107107    strcpy( basepath, g_FuncTable.m_pfnGetGamePath() ); 
    108108 
    109   const gchar *filename = g_FuncTable.m_pfnFileDialog( (GtkWidget *)g_pRadiantWnd, TRUE, "Open Camera File", basepath, "camera"); 
     109  const gchar *filename = g_FuncTable.m_pfnFileDialog( (GtkWidget *)g_pRadiantWnd, TRUE, "Open Camera File", basepath, "camera", NULL); 
    110110 
    111111  if( filename ) 
     
    162162    strcpy( basepath, g_FuncTable.m_pfnGetGamePath() ); 
    163163 
    164   const gchar *filename = g_FuncTable.m_pfnFileDialog( (void *)g_pRadiantWnd, FALSE, "Save Camera File", basepath, "camera"); 
     164  const gchar *filename = g_FuncTable.m_pfnFileDialog( (void *)g_pRadiantWnd, FALSE, "Save Camera File", basepath, "camera", NULL); 
    165165 
    166166  if( filename ) { 
  • GtkRadiant/trunk/contrib/gtkgensurf/gendlgs.cpp

    r292 r302  
    913913  char *ptr; 
    914914 
    915   filename = g_FuncTable.m_pfnFileDialog (g_pWnd, TRUE, "Bitmap File", gbmp.defpath, "gtkgensurf"); 
     915  filename = g_FuncTable.m_pfnFileDialog (g_pWnd, TRUE, "Bitmap File", gbmp.defpath, "gtkgensurf", NULL); 
    916916 
    917917  if (filename != NULL) 
  • GtkRadiant/trunk/contrib/gtkgensurf/gensurf.cpp

    r283 r302  
    398398{ 
    399399  const char *name = g_FuncTable.m_pfnFileDialog (parent, false, "Save GenSurf Settings", 
    400                                              g_FuncTable.m_pfnProfileGetDirectory (), "gtkgensurf"); 
     400                                             g_FuncTable.m_pfnProfileGetDirectory (), "gtkgensurf", NULL); 
    401401 
    402402  if (name != NULL) 
     
    437437  else 
    438438    name = g_FuncTable.m_pfnFileDialog (parent, true, "Open GenSurf Settings", 
    439                                         g_FuncTable.m_pfnProfileGetDirectory (), "gtkgensurf"); 
     439                                        g_FuncTable.m_pfnProfileGetDirectory (), "gtkgensurf", NULL); 
    440440 
    441441  if(name != NULL) 
  • GtkRadiant/trunk/include/qerplugin.h

    r289 r302  
    231231// TTimo 04/01/2001 toolkit-independant, cast parent to a GtkWidget* 
    232232typedef const gchar* (* PFN_QERAPP_FILEDIALOG) (void *parent, gboolean open, const char* title, 
    233                                                 const char* path, const char* pattern); 
     233                                                const char* path, const char* pattern, const char *baseSubDir); 
    234234typedef gchar* (WINAPI* PFN_QERAPP_DIRDIALOG) (void *parent, const char* title, 
    235235                                               const char* path); 
  • GtkRadiant/trunk/libs/ddslib/ddslib.c

    r183 r302  
    524524        { 
    525525                /* 8 bytes per block */ 
    526                 block = (ddsColorBlock_t*) ((unsigned int) dds->data + y * xBlocks * 8); 
     526                block = (ddsColorBlock_t*) ((size_t) dds->data + y * xBlocks * 8); 
    527527 
    528528                /* walk x */ 
     
    570570        { 
    571571                /* 8 bytes per block, 1 block for alpha, 1 block for color */ 
    572                 block = (ddsColorBlock_t*) ((unsigned int) dds->data + y * xBlocks * 16); 
     572                block = (ddsColorBlock_t*) ((size_t) dds->data + y * xBlocks * 16); 
    573573 
    574574                /* walk x */ 
     
    626626        { 
    627627                /* 8 bytes per block, 1 block for alpha, 1 block for color */ 
    628                 block = (ddsColorBlock_t*) ((unsigned int) dds->data + y * xBlocks * 16); 
     628                block = (ddsColorBlock_t*) ((size_t) dds->data + y * xBlocks * 16); 
    629629 
    630630                /* walk x */ 
  • GtkRadiant/trunk/libs/picomodel/lwo/lwob.c

    r274 r302  
    547547      } 
    548548      j -= 1; 
    549       pp->surf = ( lwSurface * ) j
     549      pp->surf = ( lwSurface * ) ((size_t)j)
    550550 
    551551      pp++; 
  • GtkRadiant/trunk/libs/picomodel/lwo/pntspols.c

    r183 r302  
    354354 
    355355   for ( i = 0; i < polygon->count; i++ ) { 
    356       index = ( int ) polygon->pol[ i ].surf
     356      index = ( int ) ((size_t)polygon->pol[ i ].surf)
    357357      if ( index < 0 || index > tlist->count ) return 0; 
    358358      if ( !s[ index ] ) {