1059 Commits

Author SHA1 Message Date
Adrien Destugues
032e48c64b Handle svg icon properly on linux.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1385 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-17 18:15:14 +00:00
Adrien Destugues
b21d1360a2 * Refresh makefile.dep
* Some fixes in makefile to get gp2x binary built ok, add new skins and fonts to the release package.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1384 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-17 18:05:16 +00:00
Yves Rizoud
dd3240f66b Fix C64 formats loading: 8000-byte hicolor was wrong, Multicolor was reading 'noise' in colors above 16 (described in issue 211 comment 34)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1382 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-14 18:17:56 +00:00
Yves Rizoud
5708b92481 Updated docs README and COMPILING
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1381 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-13 16:28:59 +00:00
Yves Rizoud
54317d94ae Fix issue 326: Program doesn't find data directory on some linux (attempt. Tested ok on Debian)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1380 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-11 20:40:25 +00:00
Yves Rizoud
50791f752b Updated svn properties for new tree
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1378 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-08 23:43:02 +00:00
Yves Rizoud
e0b0b41a76 Fix a bug from r1369: In Palette Invert, when the rangehad an even number of colors, the colors in the middle would not be swapped
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1377 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-08 23:38:50 +00:00
Adrien Destugues
b1a5103562 C64 format handling was broken. Thanks petter for fixing it :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1376 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-08 10:25:18 +00:00
Yves Rizoud
3ca5322379 Reorganized source code and directory tree.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1375 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-05 02:53:19 +00:00
Yves Rizoud
2012e8f6b5 Makefile: added $(COPT) like in Gürkan's diff
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1374 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-03 01:26:59 +00:00
Yves Rizoud
1bfbb1a3b9 Old typo in SDL's readme. Oops.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1373 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-03 00:08:58 +00:00
Adrien Destugues
2f9a4db7f1 .desktop file must not include the extension for the icon name. This way programs can select the filetype they want.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1372 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-02 13:59:15 +00:00
Yves Rizoud
8486c61556 Fix issue 316: Crash in Brush factory when no scripts are present
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1371 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-02 00:59:01 +00:00
Yves Rizoud
a7f51a0e60 Sped up Palette operations
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1370 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-02 00:05:40 +00:00
Yves Rizoud
22f05f5052 Fix an issue (probably old) where Color reduce would not pick the right colors if an X-Invert had been used.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1369 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-01 23:42:22 +00:00
Yves Rizoud
e423b5fb92 Fix issue 323: X-Invert didn't remap (it worked fine in 2.1). In Palette screen, fix Color reduce that only checked for used colors in visible image (instead of all layers)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1368 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-01 22:49:55 +00:00
Adrien Destugues
46f235f743 Allow to use dofile in lua scripts : we now chdir to the script folder before running the script, so it will easily find other scripts. If you want to run scripts located elsewhere, use relative or absolute path.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1367 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-01 12:42:25 +00:00
Yves Rizoud
827ad2da1c Fix issue 320: Image corruption when running a Lua script after loading 24bit image
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1366 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-24 02:31:31 +00:00
Yves Rizoud
c26b09a3d3 Default config for fresh install now has normal pixels instead of wide (duh), and 10 Undo pages instead of 4. Added a safety check for the value of Pixel_ratio setting in .ini
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1365 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-22 00:17:57 +00:00
Yves Rizoud
5e38c68a6f Makefile fix: package the Lua scripts by default
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1359 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-21 18:41:16 +00:00
Yves Rizoud
5d213a11fa Lua: New clearpicture command
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1358 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-21 18:15:15 +00:00
Yves Rizoud
8c2655f88a Lua: finished inputbox with negative and decimal inputs. Added to the repository more than 20(!) new scripts by DawnBringer
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1357 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-21 17:58:20 +00:00
Yves Rizoud
b393482c58 Lua: fix crash when a string argument is missing or an array instead. Implemented universal error messages and checks for function arguments
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1356 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-20 01:33:22 +00:00
Yves Rizoud
14464fef39 Lua inputbox: Allow negative values and floating point input. Unfinished, has problems of display (mouse cursor cleaning, display cleaning and alignment, removing redundant digits like in 15.000)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1354 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-19 02:09:50 +00:00
Adrien Destugues
f05906f99b Open lua base lib to allow use of require() and dofile().
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1353 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-17 18:34:14 +00:00
Adrien Destugues
7fe8d44805 Fix all remaining warnings in gp2x build. The compiler is a bit more picky about the includes and feature macros.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1352 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-16 13:31:29 +00:00
Adrien Destugues
13865a0ade Fix build on gp2x.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1351 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-16 12:56:24 +00:00
Yves Rizoud
4219ca839d The 'Clear' function now clears with Transparent color instead of hard-coded 0. Outside edges of images are also drawn with this color. Reduced max layers to 16, for consistency with UI. Added help screens for Layer menu and Brush factory.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1349 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-14 04:50:23 +00:00
Yves Rizoud
d5353b378d Lua window: shortcut 'return' runs highlighted script, and the script selector remembers which filename was highlighted (during current session)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1348 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-14 03:10:55 +00:00
Yves Rizoud
aa316b066e Reverted r1300 about Polygon overdraw and effects feedback (issue 131). The non-straight polygon lines was bigger problem than the specific case I raised.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1347 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-14 02:13:23 +00:00
Yves Rizoud
25e8943e4c Fix an hourglass cursor when loading a file from command-line (recent bug). Fix issue 307: Drop-opened files do not retain name in Save-as dialog.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1346 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-14 01:39:56 +00:00
Yves Rizoud
76887dd84d cleaner deletion of lock file
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1345 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-14 01:13:14 +00:00
Yves Rizoud
35121c58a8 Fixes on Debian Linux for the 'file locking'. Tested ok
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1344 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-14 01:07:05 +00:00
Yves Rizoud
4c3a0b6f68 Grafx2 now disables safety backups (and warns the user on startup) if another instance is running or if its configuration directory is read-only. Implemented separately on Linux and Windows, tested only on Windows
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1343 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-14 00:28:42 +00:00
Yves Rizoud
7076e8e06d Eliminated a lot of tab characters in source code
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1342 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-13 19:25:49 +00:00
Yves Rizoud
480c9abaab Eliminated some tab characters in source code
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1341 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-13 19:05:16 +00:00
Yves Rizoud
917847cdab Lua: added a message box. messagebox('message'), or messagebox('caption','message'). note that Lua supports concatenation (operator ..) and this function accepts backslash-n for carriage return. It performs word-wrapping if needed. Fixed the Hourglass cursor showing up in some error boxes, instead of the arrow cursor.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1340 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-13 19:00:13 +00:00
Yves Rizoud
683f8c6a18 Undo of test for Lua messages
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1339 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-13 18:31:58 +00:00
Yves Rizoud
f64117aeda Fix display in message boxes when very long messages happened (normally only with Lua messages)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1338 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-13 18:23:13 +00:00
Yves Rizoud
87432470f3 Fix a crash in 'Copy to spare:Palette' when both images have different height. Fix Lua which didin't report useful message when an error was detected.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1337 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-13 14:54:19 +00:00
Yves Rizoud
05d6d546a3 More Lua functions: GetForeColor, GetBackColor, GetTransColor (layer translucency), and to read data from spare page: GetSparePictureSize, GetSpareColor (spare's palette), GetSpareTransColor, GetSpareLayerPixel (pixel from 'current layer' only of spare), GetSparePicturePixel (pixel from 'all visible layers' of spare)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1336 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-12 02:57:00 +00:00
Yves Rizoud
25097afafd Lua: added a command that creates an input box with variable arguments (inputbox), up to 9 values can be input. Fix a cursor issue when opening brush factory.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1334 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-12 01:52:18 +00:00
Yves Rizoud
65f19eeec9 Text tool with bitmap fonts now uses the background color instead of color 0. It was not possible to draw text with a black font if black was color 0.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1333 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-09 21:53:43 +00:00
Yves Rizoud
4f73c24989 Added Layer menu. Issue 263 and issue 110: Added background transparency, for GIF and PNG formats (tested OK in Load, Save, and preview
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1332 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-09 20:04:56 +00:00
Yves Rizoud
7bccc7dda2 Make future toolbars visible by default
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1330 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-08 23:16:12 +00:00
Yves Rizoud
1f672681bc Stencil mode now 'reads' from only the current layer, instead of all visible layers.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1328 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-08 19:22:26 +00:00
Yves Rizoud
6f08d59f01 Layer toolbar visible by default. Grafx2 now records which toolbars are visible on exit, and restores them next time.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1327 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-08 18:58:42 +00:00
Yves Rizoud
b0a700850f Lua factory: More room for file names (34 chars instead of 18), and a preview of the script's first lines of comments.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1326 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-07 20:13:54 +00:00
Yves Rizoud
df2a0ec4dd Source-only: displaced and documented a function prototype
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1324 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-07 17:13:41 +00:00
Adrien Destugues
b928aa306a oops.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1323 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-07 11:45:05 +00:00