- Modified Initialisation_du_programme() so 0 is returned on SDL initialization fail.
- Added support for .png files in Mac OS X port. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@677 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
ecafeaace1
commit
c60c1e7353
@ -57,6 +57,7 @@
|
|||||||
F5B19C3D0EA4DC91003F4BA4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = F5B19C3B0EA4DC91003F4BA4 /* InfoPlist.strings */; };
|
F5B19C3D0EA4DC91003F4BA4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = F5B19C3B0EA4DC91003F4BA4 /* InfoPlist.strings */; };
|
||||||
F5B1EE850EAD0F4E00B087B5 /* gfx2def.ini in Resources */ = {isa = PBXBuildFile; fileRef = F5B1EE840EAD0F4E00B087B5 /* gfx2def.ini */; };
|
F5B1EE850EAD0F4E00B087B5 /* gfx2def.ini in Resources */ = {isa = PBXBuildFile; fileRef = F5B1EE840EAD0F4E00B087B5 /* gfx2def.ini */; };
|
||||||
F5B1EE850EAD0F4E00B087B6 /* gfx2gui.gif in Resources */ = {isa = PBXBuildFile; fileRef = F5B1EE840EAD0F4E00B087B6 /* gfx2gui.gif */; };
|
F5B1EE850EAD0F4E00B087B6 /* gfx2gui.gif in Resources */ = {isa = PBXBuildFile; fileRef = F5B1EE840EAD0F4E00B087B6 /* gfx2gui.gif */; };
|
||||||
|
F5CDCE320F6EA6D600B31F63 /* pxdouble.c in Sources */ = {isa = PBXBuildFile; fileRef = F5CDCE310F6EA6D600B31F63 /* pxdouble.c */; };
|
||||||
F5DCE2BC0EA5116A0065B0EF /* SDL_ttf in Copy Frameworks into .app bundle */ = {isa = PBXBuildFile; fileRef = F5DCE2BE0EA5118F0065B0EF /* SDL_ttf */; };
|
F5DCE2BC0EA5116A0065B0EF /* SDL_ttf in Copy Frameworks into .app bundle */ = {isa = PBXBuildFile; fileRef = F5DCE2BE0EA5118F0065B0EF /* SDL_ttf */; };
|
||||||
F5DCE2BC0EA5116B0065B0EF /* SDL_image in Copy Frameworks into .app bundle */ = {isa = PBXBuildFile; fileRef = F5DCE2BB0EA5116B0065B0EF /* SDL_image */; };
|
F5DCE2BC0EA5116B0065B0EF /* SDL_image in Copy Frameworks into .app bundle */ = {isa = PBXBuildFile; fileRef = F5DCE2BB0EA5116B0065B0EF /* SDL_image */; };
|
||||||
F5DCE2BE0EA5118E0065B0EF /* SDL in Copy Frameworks into .app bundle */ = {isa = PBXBuildFile; fileRef = F5DCE2BD0EA5118E0065B0EF /* SDL */; };
|
F5DCE2BE0EA5118E0065B0EF /* SDL in Copy Frameworks into .app bundle */ = {isa = PBXBuildFile; fileRef = F5DCE2BD0EA5118E0065B0EF /* SDL */; };
|
||||||
@ -172,6 +173,7 @@
|
|||||||
F5B19C3C0EA4DC91003F4BA4 /* English */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
F5B19C3C0EA4DC91003F4BA4 /* English */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
F5B1EE840EAD0F4E00B087B5 /* gfx2def.ini */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = gfx2def.ini; sourceTree = "<group>"; };
|
F5B1EE840EAD0F4E00B087B5 /* gfx2def.ini */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = gfx2def.ini; sourceTree = "<group>"; };
|
||||||
F5B1EE840EAD0F4E00B087B6 /* gfx2gui.gif */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = gfx2gui.gif; sourceTree = "<group>"; };
|
F5B1EE840EAD0F4E00B087B6 /* gfx2gui.gif */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = gfx2gui.gif; sourceTree = "<group>"; };
|
||||||
|
F5CDCE310F6EA6D600B31F63 /* pxdouble.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = pxdouble.c; sourceTree = "<group>"; };
|
||||||
F5DCE2BB0EA5116B0065B0EF /* SDL_image */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = SDL_image; path = /Library/Frameworks/SDL_image.framework/Versions/A/SDL_image; sourceTree = "<absolute>"; };
|
F5DCE2BB0EA5116B0065B0EF /* SDL_image */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = SDL_image; path = /Library/Frameworks/SDL_image.framework/Versions/A/SDL_image; sourceTree = "<absolute>"; };
|
||||||
F5DCE2BD0EA5118E0065B0EF /* SDL */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = SDL; path = /Library/Frameworks/SDL.framework/Versions/A/SDL; sourceTree = "<absolute>"; };
|
F5DCE2BD0EA5118E0065B0EF /* SDL */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = SDL; path = /Library/Frameworks/SDL.framework/Versions/A/SDL; sourceTree = "<absolute>"; };
|
||||||
F5DCE2BE0EA5118F0065B0EF /* SDL_ttf */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = SDL_ttf; path = /Library/Frameworks/SDL_ttf.framework/Versions/A/SDL_ttf; sourceTree = "<absolute>"; };
|
F5DCE2BE0EA5118F0065B0EF /* SDL_ttf */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = SDL_ttf; path = /Library/Frameworks/SDL_ttf.framework/Versions/A/SDL_ttf; sourceTree = "<absolute>"; };
|
||||||
@ -233,6 +235,7 @@
|
|||||||
29B97314FDCFA39411CA2CEA /* Grafx2 */ = {
|
29B97314FDCFA39411CA2CEA /* Grafx2 */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
F5CDCE310F6EA6D600B31F63 /* pxdouble.c */,
|
||||||
F5AC28B90F4873C700455509 /* hotkeys.c */,
|
F5AC28B90F4873C700455509 /* hotkeys.c */,
|
||||||
F5AC28BA0F4873C700455509 /* input.c */,
|
F5AC28BA0F4873C700455509 /* input.c */,
|
||||||
F5AC28BB0F4873C700455509 /* realpath.c */,
|
F5AC28BB0F4873C700455509 /* realpath.c */,
|
||||||
@ -412,6 +415,7 @@
|
|||||||
F5AC28BC0F4873C700455509 /* hotkeys.c in Sources */,
|
F5AC28BC0F4873C700455509 /* hotkeys.c in Sources */,
|
||||||
F5AC28BD0F4873C700455509 /* input.c in Sources */,
|
F5AC28BD0F4873C700455509 /* input.c in Sources */,
|
||||||
F5AC28BE0F4873C700455509 /* realpath.c in Sources */,
|
F5AC28BE0F4873C700455509 /* realpath.c in Sources */,
|
||||||
|
F5CDCE320F6EA6D600B31F63 /* pxdouble.c in Sources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
@ -523,11 +527,18 @@
|
|||||||
"$(HOME)/Library/Frameworks/SDL.framework/Headers",
|
"$(HOME)/Library/Frameworks/SDL.framework/Headers",
|
||||||
/Library/Frameworks/SDL.framework/Headers,
|
/Library/Frameworks/SDL.framework/Headers,
|
||||||
/Library/SDL_ttf.framework/Headers,
|
/Library/SDL_ttf.framework/Headers,
|
||||||
|
/usr/local/include,
|
||||||
"$(HEADER_SEARCH_PATHS)",
|
"$(HEADER_SEARCH_PATHS)",
|
||||||
);
|
);
|
||||||
|
LIBRARY_SEARCH_PATHS = /usr/local/lib;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"-lpng",
|
||||||
|
"-lz",
|
||||||
|
);
|
||||||
PREBINDING = NO;
|
PREBINDING = NO;
|
||||||
PRELINK_LIBS = SDL_Image;
|
PRELINK_LIBS = SDL_Image;
|
||||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
||||||
|
STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = static;
|
||||||
ZERO_LINK = YES;
|
ZERO_LINK = YES;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
@ -549,11 +560,18 @@
|
|||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = (
|
||||||
"$(HOME)/Library/Frameworks/SDL.framework/Headers",
|
"$(HOME)/Library/Frameworks/SDL.framework/Headers",
|
||||||
/Library/Frameworks/SDL.framework/Headers,
|
/Library/Frameworks/SDL.framework/Headers,
|
||||||
|
/usr/local/include,
|
||||||
"$(HEADER_SEARCH_PATHS)",
|
"$(HEADER_SEARCH_PATHS)",
|
||||||
);
|
);
|
||||||
|
LIBRARY_SEARCH_PATHS = /usr/local/lib;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"-lpng",
|
||||||
|
"-lz",
|
||||||
|
);
|
||||||
PREBINDING = NO;
|
PREBINDING = NO;
|
||||||
PRELINK_LIBS = SDL_Image;
|
PRELINK_LIBS = SDL_Image;
|
||||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
||||||
|
STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = static;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -165,8 +165,8 @@
|
|||||||
PBXFileDataSource_Warnings_ColumnID,
|
PBXFileDataSource_Warnings_ColumnID,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
PBXPerProjectTemplateStateSaveDate = 256409268;
|
PBXPerProjectTemplateStateSaveDate = 258909867;
|
||||||
PBXWorkspaceStateSaveDate = 256409268;
|
PBXWorkspaceStateSaveDate = 258909867;
|
||||||
};
|
};
|
||||||
sourceControlManager = F5B19B690EA4BD79003F4BA4 /* Source Control */;
|
sourceControlManager = F5B19B690EA4BD79003F4BA4 /* Source Control */;
|
||||||
userBuildSettings = {
|
userBuildSettings = {
|
||||||
|
|||||||
@ -454,7 +454,7 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>PBXSmartGroupTreeModuleColumnWidthsKey</key>
|
<key>PBXSmartGroupTreeModuleColumnWidthsKey</key>
|
||||||
<array>
|
<array>
|
||||||
<real>252</real>
|
<real>418</real>
|
||||||
</array>
|
</array>
|
||||||
<key>PBXSmartGroupTreeModuleColumnsKey_v4</key>
|
<key>PBXSmartGroupTreeModuleColumnsKey_v4</key>
|
||||||
<array>
|
<array>
|
||||||
@ -464,7 +464,12 @@
|
|||||||
<key>PBXSmartGroupTreeModuleOutlineStateKey_v7</key>
|
<key>PBXSmartGroupTreeModuleOutlineStateKey_v7</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>PBXSmartGroupTreeModuleOutlineStateExpansionKey</key>
|
<key>PBXSmartGroupTreeModuleOutlineStateExpansionKey</key>
|
||||||
<array/>
|
<array>
|
||||||
|
<string>29B97314FDCFA39411CA2CEA</string>
|
||||||
|
<string>080E96DDFE201D6D7F000001</string>
|
||||||
|
<string>29B97315FDCFA39411CA2CEA</string>
|
||||||
|
<string>29B97317FDCFA39411CA2CEA</string>
|
||||||
|
</array>
|
||||||
<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
|
<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
|
||||||
<array>
|
<array>
|
||||||
<array>
|
<array>
|
||||||
@ -472,7 +477,7 @@
|
|||||||
</array>
|
</array>
|
||||||
</array>
|
</array>
|
||||||
<key>PBXSmartGroupTreeModuleOutlineStateVisibleRectKey</key>
|
<key>PBXSmartGroupTreeModuleOutlineStateVisibleRectKey</key>
|
||||||
<string>{{0, 0}, {252, 575}}</string>
|
<string>{{0, 0}, {418, 598}}</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>PBXTopSmartGroupGIDs</key>
|
<key>PBXTopSmartGroupGIDs</key>
|
||||||
<array/>
|
<array/>
|
||||||
@ -482,19 +487,19 @@
|
|||||||
<key>GeometryConfiguration</key>
|
<key>GeometryConfiguration</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>Frame</key>
|
<key>Frame</key>
|
||||||
<string>{{0, 0}, {269, 593}}</string>
|
<string>{{0, 0}, {435, 616}}</string>
|
||||||
<key>GroupTreeTableConfiguration</key>
|
<key>GroupTreeTableConfiguration</key>
|
||||||
<array>
|
<array>
|
||||||
<string>MainColumn</string>
|
<string>MainColumn</string>
|
||||||
<real>252</real>
|
<real>418</real>
|
||||||
</array>
|
</array>
|
||||||
<key>RubberWindowFrame</key>
|
<key>RubberWindowFrame</key>
|
||||||
<string>40 86 970 634 0 0 1024 746 </string>
|
<string>146 -297 1487 657 0 0 1024 746 </string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Module</key>
|
<key>Module</key>
|
||||||
<string>PBXSmartGroupTreeModule</string>
|
<string>PBXSmartGroupTreeModule</string>
|
||||||
<key>Proportion</key>
|
<key>Proportion</key>
|
||||||
<string>269pt</string>
|
<string>435pt</string>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>Dock</key>
|
<key>Dock</key>
|
||||||
@ -526,9 +531,9 @@
|
|||||||
<key>GeometryConfiguration</key>
|
<key>GeometryConfiguration</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>Frame</key>
|
<key>Frame</key>
|
||||||
<string>{{0, 0}, {696, 0}}</string>
|
<string>{{0, 0}, {1047, 0}}</string>
|
||||||
<key>RubberWindowFrame</key>
|
<key>RubberWindowFrame</key>
|
||||||
<string>40 86 970 634 0 0 1024 746 </string>
|
<string>146 -297 1487 657 0 0 1024 746 </string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Module</key>
|
<key>Module</key>
|
||||||
<string>PBXNavigatorGroup</string>
|
<string>PBXNavigatorGroup</string>
|
||||||
@ -537,12 +542,16 @@
|
|||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>Proportion</key>
|
<key>Proportion</key>
|
||||||
<string>588pt</string>
|
<string>611pt</string>
|
||||||
<key>Tabs</key>
|
<key>Tabs</key>
|
||||||
<array>
|
<array>
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>BecomeActive</key>
|
||||||
|
<true/>
|
||||||
<key>ContentConfiguration</key>
|
<key>ContentConfiguration</key>
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>PBXBuildLogShowsTranscriptDefaultKey</key>
|
||||||
|
<string>{{0, 107}, {1047, 477}}</string>
|
||||||
<key>PBXProjectModuleGUID</key>
|
<key>PBXProjectModuleGUID</key>
|
||||||
<string>XCMainBuildResultsModuleGUID</string>
|
<string>XCMainBuildResultsModuleGUID</string>
|
||||||
<key>PBXProjectModuleLabel</key>
|
<key>PBXProjectModuleLabel</key>
|
||||||
@ -555,9 +564,9 @@
|
|||||||
<key>GeometryConfiguration</key>
|
<key>GeometryConfiguration</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>Frame</key>
|
<key>Frame</key>
|
||||||
<string>{{10, 27}, {696, 561}}</string>
|
<string>{{10, 27}, {1047, 584}}</string>
|
||||||
<key>RubberWindowFrame</key>
|
<key>RubberWindowFrame</key>
|
||||||
<string>40 86 970 634 0 0 1024 746 </string>
|
<string>146 -297 1487 657 0 0 1024 746 </string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Module</key>
|
<key>Module</key>
|
||||||
<string>PBXBuildResultsModule</string>
|
<string>PBXBuildResultsModule</string>
|
||||||
@ -610,7 +619,7 @@
|
|||||||
<key>GeometryConfiguration</key>
|
<key>GeometryConfiguration</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>Frame</key>
|
<key>Frame</key>
|
||||||
<string>{{0, 0}, {0, 0}}</string>
|
<string>{{10, 27}, {902, 597}}</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Module</key>
|
<key>Module</key>
|
||||||
<string>PBXRunSessionModule</string>
|
<string>PBXRunSessionModule</string>
|
||||||
@ -619,7 +628,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>Proportion</key>
|
<key>Proportion</key>
|
||||||
<string>696pt</string>
|
<string>1047pt</string>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>Name</key>
|
<key>Name</key>
|
||||||
@ -637,14 +646,14 @@
|
|||||||
</array>
|
</array>
|
||||||
<key>TableOfContents</key>
|
<key>TableOfContents</key>
|
||||||
<array>
|
<array>
|
||||||
<string>F5D646030F487ECB007E515F</string>
|
<string>F5CDCE430F6EB68600B31F63</string>
|
||||||
<string>1CA23EE50692099D00951B8B</string>
|
<string>1CA23EE50692099D00951B8B</string>
|
||||||
<string>F5D646040F487ECB007E515F</string>
|
<string>F5CDCE440F6EB68600B31F63</string>
|
||||||
<string>F5A33EC20EC89C3000F8052D</string>
|
<string>F5A33EC20EC89C3000F8052D</string>
|
||||||
<string>F5D646050F487ECB007E515F</string>
|
<string>F5CDCE450F6EB68600B31F63</string>
|
||||||
<string>XCMainBuildResultsModuleGUID</string>
|
<string>XCMainBuildResultsModuleGUID</string>
|
||||||
<string>1CA23EE80692099D00951B8B</string>
|
<string>1CA23EE80692099D00951B8B</string>
|
||||||
<string>F5D646060F487ECB007E515F</string>
|
<string>F5CDCE460F6EB68600B31F63</string>
|
||||||
</array>
|
</array>
|
||||||
<key>ToolbarConfiguration</key>
|
<key>ToolbarConfiguration</key>
|
||||||
<string>xcode.toolbar.config.buildAndRun</string>
|
<string>xcode.toolbar.config.buildAndRun</string>
|
||||||
@ -818,7 +827,7 @@
|
|||||||
<string>/Users/xx/Grafx2/Grafx2.xcodeproj</string>
|
<string>/Users/xx/Grafx2/Grafx2.xcodeproj</string>
|
||||||
</array>
|
</array>
|
||||||
<key>WindowString</key>
|
<key>WindowString</key>
|
||||||
<string>40 86 970 634 0 0 1024 746 </string>
|
<string>146 -297 1487 657 0 0 1024 746 </string>
|
||||||
<key>WindowTools</key>
|
<key>WindowTools</key>
|
||||||
<array>
|
<array>
|
||||||
<dict>
|
<dict>
|
||||||
|
|||||||
@ -22,10 +22,6 @@
|
|||||||
*/
|
*/
|
||||||
#define _XOPEN_SOURCE
|
#define _XOPEN_SOURCE
|
||||||
|
|
||||||
#if defined(__macosx__)
|
|
||||||
#define __no_pnglib__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
20
main.c
20
main.c
@ -282,7 +282,8 @@ void Analyse_de_la_ligne_de_commande(int argc,char * argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------ Initialiser le programme -------------------------
|
// ------------------------ Initialiser le programme -------------------------
|
||||||
void Initialisation_du_programme(int argc,char * argv[])
|
// Returns 0 on fail
|
||||||
|
int Initialisation_du_programme(int argc,char * argv[])
|
||||||
{
|
{
|
||||||
int Temp;
|
int Temp;
|
||||||
int Mode_dans_lequel_on_demarre;
|
int Mode_dans_lequel_on_demarre;
|
||||||
@ -369,9 +370,16 @@ void Initialisation_du_programme(int argc,char * argv[])
|
|||||||
Brouillon_Loupe_Decalage_X=0;
|
Brouillon_Loupe_Decalage_X=0;
|
||||||
Brouillon_Loupe_Decalage_Y=0;
|
Brouillon_Loupe_Decalage_Y=0;
|
||||||
|
|
||||||
// SDL
|
SDL_putenv("SDL_VIDEO_WINDOW_POS=center");
|
||||||
|
SDL_putenv("SDL_VIDEO_CENTERED=1");
|
||||||
|
|
||||||
SDL_Init(SDL_INIT_TIMER|SDL_INIT_VIDEO|SDL_INIT_JOYSTICK);
|
// SDL
|
||||||
|
if(SDL_Init(SDL_INIT_TIMER|SDL_INIT_VIDEO|SDL_INIT_JOYSTICK) < 0)
|
||||||
|
{
|
||||||
|
// The program can't continue without that anyway
|
||||||
|
printf("Couldn't initialize SDL.\n");
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
joystick = SDL_JoystickOpen(0);
|
joystick = SDL_JoystickOpen(0);
|
||||||
SDL_EnableKeyRepeat(250, 32);
|
SDL_EnableKeyRepeat(250, 32);
|
||||||
SDL_EnableUNICODE(SDL_ENABLE);
|
SDL_EnableUNICODE(SDL_ENABLE);
|
||||||
@ -597,6 +605,7 @@ void Initialisation_du_programme(int argc,char * argv[])
|
|||||||
Brosse_Hauteur=1;
|
Brosse_Hauteur=1;
|
||||||
Capturer_brosse(0,0,0,0,0);
|
Capturer_brosse(0,0,0,0,0);
|
||||||
*Brosse=CM_Blanc;
|
*Brosse=CM_Blanc;
|
||||||
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------- Fermeture du programme --------------------------
|
// ------------------------- Fermeture du programme --------------------------
|
||||||
@ -645,7 +654,10 @@ int main(int argc,char * argv[])
|
|||||||
char Nom_du_fichier_Phoenix[TAILLE_CHEMIN_FICHIER];
|
char Nom_du_fichier_Phoenix[TAILLE_CHEMIN_FICHIER];
|
||||||
char Nom_du_fichier_Phoenix2[TAILLE_CHEMIN_FICHIER];
|
char Nom_du_fichier_Phoenix2[TAILLE_CHEMIN_FICHIER];
|
||||||
|
|
||||||
Initialisation_du_programme(argc,argv);
|
if(!Initialisation_du_programme(argc,argv))
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Test de recuperation de fichiers sauvés
|
// Test de recuperation de fichiers sauvés
|
||||||
strcpy(Nom_du_fichier_Phoenix,Repertoire_de_configuration);
|
strcpy(Nom_du_fichier_Phoenix,Repertoire_de_configuration);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user