Yves Rizoud
8d2e0642e6
MIME type for rtf... lets see if googlecode handles it better
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1274 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 23:14:08 +00:00
Yves Rizoud
06c2c4aa83
Add first draft of a Quickstart guide (uncomplete)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1273 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 23:08:59 +00:00
Adrien Destugues
fe0f87521b
-Add some more zoom factors (up to x32)
...
-Replace the zoom window with a popup menu. Note this make shift+M unusable. Do you think it's annoying ? (also, I don't know how to remove/disable the shortcut, and have no idea what it could do instead)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1272 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 22:10:19 +00:00
Adrien Destugues
98a9eb44c4
Fix X-Swap not remapping the layers properly.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1271 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 20:36:17 +00:00
Adrien Destugues
64c3bc7771
The skin preview could corrupt the screen palette. Now always restore it properly.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1270 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 20:01:37 +00:00
Adrien Destugues
28b2122997
Fix wrong menu colors when recovering a backup.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1269 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 19:54:02 +00:00
Adrien Destugues
027db7736a
-Fix best_color_nonexcluded again.
...
-Fix zoom position drifting when switching to spare
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1268 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 19:16:55 +00:00
Adrien Destugues
97ca0c65e3
Fix stupid bug. No one noticed yet :p
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1267 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 09:36:47 +00:00
Yves Rizoud
6a69fa2b79
Hide button now brings a drop-down menu to choose toolbars to show/hide. Right-clicking it toggles them all off/on. Internal: Added support for dropdowns that expand above the button (available in toolbars and windows); Allowed toolbar buttons to wait for button release (the usual) or immediately trigger their effect.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1266 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 01:56:56 +00:00
Adrien Destugues
450b64ca10
Fixed a bug in gradrect xor lines drawing where they could sometime get to draw over the menu or even outside the screen.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1265 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-16 21:58:45 +00:00
Adrien Destugues
ae873551ff
-Fixed and extended the brush factory API. The factory now does a backup before running a script.
...
-Updated the convolution sample factory to do a proper convolution, reading from the backup. There is still no colormapping.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1262 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-16 20:00:10 +00:00
Yves Rizoud
247d7f54fd
Compilation adjustment for win32. I suspect the other targets also need something for lua.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1260 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-16 18:40:38 +00:00
Adrien Destugues
b62f86bf45
Fixed double free when loading 24b image.
...
Yves, it is not needed to check if a pointer is NULL before freeing it, free(NULL) is okay and will not crash.
However, each time you free something, you should put it back to NULL :
-It makes sure the program will crash on next access to it (even if the memory chunk is reallocated)
-It makes it easier to debug things, a NULL pointer is freed data.
If you can't gt used to it, create a Free macro that does the NULLification for you...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1259 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-16 17:48:14 +00:00
Adrien Destugues
c1800bb42d
Sanity checks in the pixel ratio loading.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1258 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-16 17:27:15 +00:00
Adrien Destugues
655116bd37
-Save pixel ratio in infile
...
-Fix a bug if a wrong grid xor value was set (was mostly harmless)
-Some cleanup.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1257 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-16 16:31:03 +00:00
Adrien Destugues
70a61a07ef
-Linux now uses pkgconfig to find infos about lua. This may break other platforms
...
-No longer enforce lua5.1 as the include dir for lua files.
--Cette ligne, et les suivantes ci-dessous, seront ignorées--
M trunk/Makefile
M trunk/factory.c
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1255 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-16 15:40:05 +00:00
Adrien Destugues
235d556296
Patch to XCode project by Tomasz, to at least get GrafX2 to a buildable state. Thanks !
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1254 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-16 13:48:14 +00:00
Adrien Destugues
3b3bb3b2ec
-Fixed brush factory : it was unable to draw on the picture !
...
-Added a script that do a convolution of the image with a matrix. Not sure it works perfect yet.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1252 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-15 21:44:34 +00:00
Yves Rizoud
3294a304bf
Issue 275: Fixed cursor 'moving by itself' by disabling joystick control on desktop platforms
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1251 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-15 19:47:27 +00:00
Adrien Destugues
75226f6438
This is apparently a build fix for macosX
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1250 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-15 19:37:57 +00:00
Yves Rizoud
9cb3f7a70d
Issue 284:Made the UI zoomed by x2 maximum, by default (Menu_ratio = -2 in gfx2.ini). Fix issue 286.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1249 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-15 19:19:01 +00:00
Yves Rizoud
e351605a24
Reverted the icon-loading code to SDL_image, using more solid code to handle both 8bit and hi-color icons
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1248 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-15 02:40:32 +00:00
Yves Rizoud
84ac0df49c
Issue 285: For skins and fonts, replaced calls to SDL_image with our own image-loading functions. Also fixed the generic loader that was updating the screen palette even when not useful.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1247 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-15 01:48:33 +00:00
Adrien Destugues
3226961fb5
Added svg logo.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1246 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-13 19:40:58 +00:00
Yves Rizoud
8bdd163ede
Huge rewrite of the file loading/saving system. Normally safer in case of problem. Added incremental safety backups at regular intervals in the 'application data' directory (Windows) or $HOME/.grafx2 (unix). Keeps 8 files, saves every 30-60s and/or every 10-30 clicks.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1245 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-13 02:09:47 +00:00
Adrien Destugues
c93a9bd1c1
Mask and Stencil shortcuts were reversed.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1244 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-12 23:14:38 +00:00
Adrien Destugues
ca6a10216b
-Some support for TRU64 unix. I don't have SDL on this machine so I'm
...
not sure how far I can get it...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1243 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-12 12:26:27 +00:00
Adrien Destugues
8d01995a80
Fix makefile for make install under linux.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1241 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-12-27 16:30:06 +00:00
Adrien Destugues
9f9eede8ab
Fix the bmp saving (once again).
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1240 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-12-23 17:34:25 +00:00
Adrien Destugues
107875b768
The .cfg file disapeared but was still in the mac bundle building.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1239 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-12-17 12:20:22 +00:00
Adrien Destugues
80d5b68808
Update DPaint skin.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1238 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-12-16 10:26:45 +00:00
Yves Rizoud
cf54bb5f29
Implemented back the Mask mode. Fixed a historical bug of memory violation if you used Mask with images of different sizes (would crash all platforms except DOS)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1237 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-12-07 20:39:32 +00:00
Yves Rizoud
141a523c46
Fix issue 271: Loading 16/24/32bit images wasn't working since the layers. oops.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1236 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-12-03 02:14:31 +00:00
Adrien Destugues
9507cf8df2
Fixed missing include and const in brush factory.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1235 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-12-02 12:58:24 +00:00
Yves Rizoud
45524de886
Temporarily disabled Mask which is not implmented (it would crash on each use). Fixed instant crash in 'Copy to spare / Palette and remap' by doing actual layer-aware implementation
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1234 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-12-02 00:41:37 +00:00
Yves Rizoud
7d657e0c02
Fix issue 264: Undo/Redo/kill can leave no active or visible layer
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1233 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-12-01 23:51:34 +00:00
Yves Rizoud
7645d0844a
Fix weird mixing of layers from main and spare pages (Issue 259)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1232 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-12-01 23:05:22 +00:00
Adrien Destugues
247b228141
fixed issue #261
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1229 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-29 21:43:31 +00:00
Adrien Destugues
d55568f07a
fix issue #260
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1228 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-29 21:39:02 +00:00
Yves Rizoud
0a7bd889d1
Better command-line handling (issue 266) contributed by Pasi Kallinen
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1227 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-29 18:25:14 +00:00
Yves Rizoud
224902e18e
Some endianness fixes in load/save of formats KCF, IMG, CEL, IMG, BMP. Now all file operations are done directly with the right endianness.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1226 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-26 23:34:51 +00:00
Yves Rizoud
3538abadb9
Added support for hiding the main toolbar, keeping the status line and optionally layer bar. Made it the default behaviour of F10 / right-click 'hide', for testing and feedback. (IMO it's less unforgiving for new users, and we can provide alternative shortcut with old behaviour for veterans).
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1225 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-26 00:32:45 +00:00
Yves Rizoud
03cbcee632
Fix issue 258: Crash on non-Windows platforms when saving GIF
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1224 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-25 02:22:32 +00:00
Adrien Destugues
0be1f7bff1
-Load Lua's math library when running factory scripts, as this makes them a lot more useful (sin, cos, ...)
...
-Don't crash when Lua fails loading a script but does not return an error message.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1223 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-24 17:56:05 +00:00
Yves Rizoud
73ca64c9dc
Fixed issue 254: More room for filename in status bar
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1222 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-19 01:58:10 +00:00
Yves Rizoud
061bfccae6
Second fix for issue 252:Layer buttons redrawn over the tool bar when layer bar is hidden. An uninitialized variable wasn't detected and made the fix randomly successful.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1221 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-19 01:36:30 +00:00
Yves Rizoud
8c9321d98b
Fix issue 250: Alert box for image flattening is too wide. Implemented basic multi-line alert box (use explicit carriage returns).
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1220 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-19 01:24:10 +00:00
Yves Rizoud
776da3980d
Fix issue 251: random transparent color for new layers
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1219 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-19 00:13:12 +00:00
Adrien Destugues
21e3cfe959
Fix too long line in help for contour fill.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1215 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-18 21:28:02 +00:00
Adrien Destugues
4891065b44
This file is not needed anymore since a long time.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1214 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-17 21:53:08 +00:00