1213 Commits

Author SHA1 Message Date
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
Adrien Destugues
2bf0e76a7c Some cleanup of the misc folder to hold data for other platforms.
Added an icon for morphos
It would be nice if .ico, .gif and other datafiles moved to this misc folder, eventually .ini and .cfg too.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1213 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-17 21:52:42 +00:00
Adrien Destugues
825142eabb This is actually not needed with an up to date and properly installed sdk.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1212 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-17 21:22:36 +00:00
Adrien Destugues
a055a9a51e Fix buggy drawing in menu when using shortcuts.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1211 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-17 21:07:03 +00:00
Adrien Destugues
63191fec2f Fix nasty bug whith skin management.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1210 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-16 23:09:06 +00:00
Adrien Destugues
c39f643808 Fix selecting colors in the menubar.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1208 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-16 22:04:11 +00:00
Adrien Destugues
5671297542 -Build "fix" for morphos
-Makefile fix for linux. This one should work ok on linux and windows as it did before, but not on amiga. The amiga packing procedure is quite different anyway, so I think that's ok.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1207 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-16 21:59:05 +00:00
Yves Rizoud
c6a783c741 Last try at multiplatform Makefile. If this don't work, revert my change and I'll add my windows-only packaging instructions as a new make target.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1205 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-16 00:35:19 +00:00
Yves Rizoud
af8e34c0d2 Updated credits
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1204 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-16 00:22:09 +00:00
Yves Rizoud
0dc74a7585 Added Jamon's skin and font to svn.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1203 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 23:51:20 +00:00
Yves Rizoud
951600da1e Fix crashing bug when you click a layer button, hold it, and release past the edges of the layer buttons. Fix a display bug when layer bar is hidden and you use the shortcut actions.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1202 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 22:34:27 +00:00
Yves Rizoud
e2f4ed00f1 Fix a mouse dropping remaining when clicking layer color. Made the button pick current transp color when left-clicking, and set it on right-click.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1201 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 22:24:12 +00:00
Adrien Destugues
8612aa7303 More makefile fixes...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1200 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 22:10:39 +00:00
Adrien Destugues
2d0cd44841 Fixes to the makefile :
-sed for creating pversion failed with bash.
-"else ifeq" does not work with morphos make.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1199 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 22:06:18 +00:00
Adrien Destugues
853d2b6cad Two buttons were reversed in the layer bar.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1197 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 21:09:02 +00:00
Adrien Destugues
910e2248cf Fix some palette display bugs (wrong position and size of cells) that happens when the menu zoom factor is bigger than 1. Introduced with the new stackable menus system.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1196 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 20:58:06 +00:00
Adrien Destugues
026e9c358e Fix bmp saving.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1195 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 20:56:08 +00:00
Yves Rizoud
60d85deb41 Makefile fixes for packaging
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1194 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 19:40:37 +00:00