From af9e862b5d403260e7c189c2d5254291de84c5e2 Mon Sep 17 00:00:00 2001 From: Franck Charlet Date: Tue, 28 Oct 2008 10:34:46 +0000 Subject: [PATCH] - Enabled the support for text in macosx version albeit it doesn't seem to do anything yet beside displaying a dialog window (updated the xcode project accordingly by installing SDL_ttf with the application). .- Added a Backup() in Rectangle_Degrade_12_0() so the undo command should work. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@316 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- .DS_Store | Bin 15364 -> 15364 bytes Grafx2.xcodeproj/project.pbxproj | 28 +++++++ Grafx2.xcodeproj/xx.pbxuser | 79 +++++++++--------- Grafx2.xcodeproj/xx.perspective | 134 +++++++++++++++---------------- loadsave.c | 4 +- operatio.c | 1 + texte.c | 6 +- 7 files changed, 137 insertions(+), 115 deletions(-) diff --git a/.DS_Store b/.DS_Store index a7fc0cddf34518c7450bbf8078bbedb827decd78..4845a554180c3d890e85a9c58cb15fa0ba57ac3b 100644 GIT binary patch delta 199 zcmZpvXsM83U|?W$DortDU{C-uIe-{M3-C-V6q~3gIoUvmMH0wo2moS6pg03VCPN-W zB|{oRK11GSL5aoeo7p*7I2Z#q^C;|LWcJG`-h5iofqApF>ISCCd({OdCkqQtHWN^s ztSsvpK z%22_e$B^NfGqF&4vVjT3xYJ-xB;J@aIK6 ActivePerspectiveName - Build + Project AllowedModules @@ -188,9 +188,9 @@ PerspectiveWidths - 1000 - 1000 - 1000 + 967 + 967 + 967 Perspectives @@ -222,6 +222,8 @@ Layout + BecomeActive + ContentConfiguration PBXBottomSmartGroupGIDs @@ -262,9 +264,17 @@ PBXSmartGroupTreeModuleOutlineStateExpansionKey + 29B97314FDCFA39411CA2CEA + 080E96DDFE201D6D7F000001 + 29B97315FDCFA39411CA2CEA + 29B97317FDCFA39411CA2CEA + 29B97323FDCFA39411CA2CEA + 19C28FACFE9D520D11CA2CBB 1C37FBAC04509CD000000102 - F5B1EEA20EAD15CD00B087B5 - F5B1EEA30EAD15CD00B087B5 + F5B138DE0EB72045000B83CC + F5B138DF0EB72045000B83CC + F5B138E00EB72045000B83CC + F5B138E10EB72045000B83CC PBXSmartGroupTreeModuleOutlineStateSelectionKey @@ -273,7 +283,7 @@ PBXSmartGroupTreeModuleOutlineStateVisibleRectKey - {{0, 0}, {339, 580}} + {{0, 662}, {339, 544}} PBXTopSmartGroupGIDs @@ -283,7 +293,7 @@ GeometryConfiguration Frame - {{0, 0}, {356, 598}} + {{0, 0}, {356, 562}} GroupTreeTableConfiguration FileBuiltColumn @@ -293,6 +303,8 @@ MainColumn 297 + RubberWindowFrame + 25 79 967 603 0 0 1024 746 Module PBXSmartGroupTreeModule @@ -308,7 +320,7 @@ PBXProjectModuleGUID F5B19BA70EA4BF24003F4BA4 PBXProjectModuleLabel - divers.c + PBXSplitModuleInNavigatorKey Split0 @@ -316,21 +328,15 @@ PBXProjectModuleGUID F5B19BA80EA4BF24003F4BA4 PBXProjectModuleLabel - divers.c - _historyCapacity - 0 - bookmark - F5B1EEBB0EAD20DC00B087B5 + history F5B19C160EA4D6E8003F4BA4 F5B1D1770EA5FE2100AB8D0F - F5B1EE860EAD0F5800B087B5 prevStack F5B1D1790EA5FE2100AB8D0F - F5B1D1B70EA602BA00AB8D0F SplitCount @@ -344,7 +350,9 @@ GeometryConfiguration Frame - {{0, 0}, {639, 0}} + {{0, 0}, {606, 0}} + RubberWindowFrame + 25 79 967 603 0 0 1024 746 Module PBXNavigatorGroup @@ -353,7 +361,7 @@ Proportion - 593pt + 557pt Tabs @@ -367,7 +375,9 @@ GeometryConfiguration Frame - {{10, 27}, {639, 566}} + {{10, 27}, {606, 530}} + RubberWindowFrame + 25 79 967 603 0 0 1024 746 Module XCDetailModule @@ -408,7 +418,7 @@ Proportion - 639pt + 606pt Name @@ -426,11 +436,11 @@ TableOfContents - F5B1EEA50EAD15CD00B087B5 + F5B138E20EB72045000B83CC 1CA23ED40692098700951B8B - F5B1EEA60EAD15CD00B087B5 + F5B138E30EB72045000B83CC F5B19BA70EA4BF24003F4BA4 - F5B1EEA70EAD15CD00B087B5 + F5B138E40EB72045000B83CC 1CA23EDF0692099D00951B8B 1CA23EE00692099D00951B8B 1CA23EE10692099D00951B8B @@ -478,7 +488,7 @@ PBXSmartGroupTreeModuleColumnWidthsKey - 251 + 327 PBXSmartGroupTreeModuleColumnsKey_v4 @@ -488,18 +498,15 @@ PBXSmartGroupTreeModuleOutlineStateKey_v7 PBXSmartGroupTreeModuleOutlineStateExpansionKey - - 29B97314FDCFA39411CA2CEA - + PBXSmartGroupTreeModuleOutlineStateSelectionKey - 1 0 PBXSmartGroupTreeModuleOutlineStateVisibleRectKey - {{0, 0}, {251, 429}} + {{0, 0}, {327, 544}} PBXTopSmartGroupGIDs @@ -509,19 +516,17 @@ GeometryConfiguration Frame - {{0, 0}, {268, 447}} + {{0, 0}, {344, 562}} GroupTreeTableConfiguration MainColumn - 251 + 327 - RubberWindowFrame - 47 162 969 488 0 0 1024 746 Module PBXSmartGroupTreeModule Proportion - 268pt + 344pt Dock @@ -541,21 +546,16 @@ F5B19BA80EA4BF24003F4BA4 PBXProjectModuleLabel palette.c - _historyCapacity - 0 - bookmark - F5C3D2870EAE1EE800264A2B history F5B19C160EA4D6E8003F4BA4 F5B1D1770EA5FE2100AB8D0F F5B1EEA80EAD15CD00B087B5 - F5C3D2770EAE1BA000264A2B + F5AE7F8D0EB12409001C151F prevStack F5B1D1790EA5FE2100AB8D0F - F5B1D1B70EA602BA00AB8D0F F5B1EEAA0EAD15CD00B087B5 @@ -570,9 +570,7 @@ GeometryConfiguration Frame - {{0, 0}, {696, 0}} - RubberWindowFrame - 47 162 969 488 0 0 1024 746 + {{0, 0}, {618, 0}} Module PBXNavigatorGroup @@ -581,16 +579,14 @@ Proportion - 442pt + 557pt Tabs - BecomeActive - ContentConfiguration PBXBuildLogShowsTranscriptDefaultKey - {{0, 166}, {696, 249}} + {{0, 141}, {618, 389}} PBXProjectModuleGUID XCMainBuildResultsModuleGUID PBXProjectModuleLabel @@ -603,9 +599,7 @@ GeometryConfiguration Frame - {{10, 27}, {696, 415}} - RubberWindowFrame - 47 162 969 488 0 0 1024 746 + {{10, 27}, {618, 530}} Module PBXBuildResultsModule @@ -667,7 +661,7 @@ Proportion - 696pt + 618pt Name @@ -685,14 +679,14 @@ TableOfContents - F5C3D2830EAE1D5C00264A2B + F5B138E50EB72045000B83CC 1CA23EE50692099D00951B8B - F5C3D2840EAE1D5C00264A2B + F5B138E60EB72045000B83CC F5B19BA70EA4BF24003F4BA4 - F5C3D2850EAE1D5C00264A2B + F5B138E70EB72045000B83CC XCMainBuildResultsModuleGUID 1CA23EE80692099D00951B8B - F5C3D2860EAE1D5C00264A2B + F5B138E80EB72045000B83CC ToolbarConfiguration xcode.toolbar.config.buildAndRun @@ -736,12 +730,12 @@ GeometryConfiguration Frame - {{0, 0}, {951, 163}} + {{0, 0}, {969, 12}} Module PBXDebugCLIModule Proportion - 163pt + 12pt ContentConfiguration @@ -760,8 +754,8 @@ yes sizes - {{0, 0}, {445, 205}} - {{445, 0}, {506, 205}} + {{0, 0}, {453, 205}} + {{453, 0}, {516, 205}} VerticalSplitView @@ -776,8 +770,8 @@ yes sizes - {{0, 0}, {951, 205}} - {{0, 205}, {951, 225}} + {{0, 0}, {969, 205}} + {{0, 205}, {969, 225}} @@ -799,7 +793,7 @@ DebugSTDIOWindowFrame {{200, 200}, {500, 300}} Frame - {{0, 168}, {951, 430}} + {{0, 17}, {969, 430}} Module PBXDebugSessionModule @@ -823,15 +817,15 @@ TableOfContents - F5AD4A820EA8C2B2009CCAC4 + F5B1389F0EB71A4B000B83CC 1CCC7628064C1048000F2A68 1CCC7629064C1048000F2A68 - F5AD4A830EA8C2B2009CCAC4 - F5AD4A840EA8C2B2009CCAC4 - F5AD4A850EA8C2B2009CCAC4 - F5AD4A860EA8C2B2009CCAC4 - F5AD4A720EA8C198009CCAC4 - F5AD4A870EA8C2B2009CCAC4 + F5B138A00EB71A4B000B83CC + F5B138A10EB71A4B000B83CC + F5B138A20EB71A4B000B83CC + F5B138A30EB71A4B000B83CC + F5B138A40EB71A4B000B83CC + F5B138A50EB71A4B000B83CC ToolbarConfiguration xcode.toolbar.config.debug @@ -864,7 +858,7 @@ /Users/xx/Grafx2/Grafx2.xcodeproj WindowString - 47 162 969 488 0 0 1024 746 + 25 79 967 603 0 0 1024 746 WindowTools diff --git a/loadsave.c b/loadsave.c index 73cb460c..3120631d 100644 --- a/loadsave.c +++ b/loadsave.c @@ -988,8 +988,8 @@ void Load_PKM(void) if (Octet==4) { Indice+=4; - if ( ! read_word_le(Fichier,&Ecran_original_X) - || !read_word_le(Fichier,&Ecran_original_Y) ) + if ( ! read_word_le(Fichier,(word *) &Ecran_original_X) + || !read_word_le(Fichier,(word *) &Ecran_original_Y) ) Erreur_fichier=2; } else diff --git a/operatio.c b/operatio.c index ac3e134b..4b37db50 100644 --- a/operatio.c +++ b/operatio.c @@ -4158,6 +4158,7 @@ void Rectangle_Degrade_12_0(void) // Initialisation de l'étape 1, on commence ŕ dessiner le rectangle { Initialiser_debut_operation(); + Backup(); if ((Config.Coords_rel) && (Menu_visible)) Print_dans_menu("\035: 1 \022: 1",0); diff --git a/texte.c b/texte.c index 72a63e0b..c14e0a09 100644 --- a/texte.c +++ b/texte.c @@ -28,10 +28,14 @@ // TrueType #ifndef NOTTF +#ifdef __macosx__ +#include +#else #include #endif -// SFont +#endif #include +// SFont #include "SFont.h" #include "struct.h"