1048 Commits

Author SHA1 Message Date
Adrien Destugues
f4defe7e75 Moved "show limits" and "separate colors" to skin dialog
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1107 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 15:19:59 +00:00
Adrien Destugues
7af6b92e3e Reset quicksearch when entering a directory.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1106 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 11:51:07 +00:00
Adrien Destugues
56a4c704fe Added lua binding to select the color brush.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1104 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 10:45:52 +00:00
Adrien Destugues
9b45134596 Apply patch from issue 223 and some more tweaks as later suggested in the comments.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1103 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-30 10:26:44 +00:00
Yves Rizoud
0ae98c2e56 Makefile fixes for lua packaging
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1102 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 23:35:59 +00:00
Yves Rizoud
0694f69c9c trunk: Lua binding works on Windows.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1101 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 22:50:34 +00:00
Adrien Destugues
b0aa1dcbab Added Ok and Cancel buttons in value requester. Don't do anything in palette screen if user enters strange value, not even a reduction to 256 as this drops unused colors.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1100 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 22:05:14 +00:00
Adrien Destugues
2a67c9bdce Refactored (yes, already) the lua API to allow also generating pictures directly.
Updated doc, and added sample script.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1099 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 17:27:49 +00:00
Adrien Destugues
06892015ea added lua binding to set a color in the palette
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1097 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 15:52:21 +00:00
Adrien Destugues
1934425972 Added "Brush Factory", allowing you to run a lua script to generate (or alter, untested yet) a brush.
Added a simple (and ugly) sample script.
This needs updates to the makefile for platforms other than linux.
TODO: add a listbox to select the script you want to run. Do we have a simple API to handle filelists yet ?


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1094 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 15:22:45 +00:00
Adrien Destugues
4d20be0053 Fixed some more amiga vbcc warnings
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1093 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-27 10:28:32 +00:00
Adrien Destugues
54a673f10f Fixed some warnings spotted by vbcc on amiga.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1092 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-25 14:36:49 +00:00
Adrien Destugues
42ac69177f Added a color counter to the palette screen. It needs the setting to autocount colors to be enabled and probably display garbage when it's disabled. Is this setting really useful ? Do someone dsable it ?
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1091 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-24 14:06:12 +00:00
Adrien Destugues
111fbbcf33 -Introduce new Requester_window to ask the user to enter a single value
-Reduce colors in the palette screen is now a dropdown for easy access to usual values. "Other" option opens a requester to enter a custom one if needed
-Some cleanup to make things a little more readable
-Build fixes after versionning system revert


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1090 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-24 13:42:59 +00:00
Yves Rizoud
19decb6d4c Trunk: Restored working behavior for version and pversion
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1088 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 23:00:58 +00:00
Yves Rizoud
3781dae7d3 [layers] Updated from trunk.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1087 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 22:44:45 +00:00
Yves Rizoud
2a8546eaef trunk: Windows' .ICO icons can be read too. Removed jpeg.dll, not used.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1086 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 22:28:38 +00:00
Yves Rizoud
db130fc60d trunk: Implemented file loading of JPEG, TGA, TIFF and a few others, by using SDL_Image builtin loader. Added visible 'hourglass' cursor during 24bit color reduction.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1085 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 22:12:56 +00:00
Yves Rizoud
22d5e7de70 [layers] Updated from trunk: 'All formats' filter in file selectors
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1084 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 09:57:38 +00:00
Yves Rizoud
9ef0e6b74c (trunk) File save/load only shows common file extensions by default. (choice 'all' in filter, different from '*.*')
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1083 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 01:52:07 +00:00
Yves Rizoud
9e68266ff8 Merged release into trunk
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1081 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-20 19:02:54 +00:00
Yves Rizoud
4afff2ca9b Release: Fix issue 217: high CPU usage while idle
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/release@1080 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-20 18:46:37 +00:00
Yves Rizoud
8cf9b530a8 Release: Fix issue 217: high CPU usage while idle
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1079 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-20 18:43:34 +00:00
Yves Rizoud
3037d1a84e [layers] Fixed crash on png saving (thanks Roberto)
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1078 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-18 19:14:34 +00:00
Yves Rizoud
89f2173d70 [layers] Implemented SwapUp and SwapDown (Alt-PgUp, Alt-PgDown) to change layers order; Implemented layer merge (Alt-End); improved GIF loader to read images with optimized layers (smaller) and the ones with a transparent color different than zero.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1077 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-18 19:06:07 +00:00
Yves Rizoud
abb6204757 [layers] Limited to 32 layers. (previously there was no limit and the 16-bit depth buffer wrapped). Fixed a display bug after picture transforms or layers add/del.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1075 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-14 00:13:49 +00:00
Yves Rizoud
2dcc1cf8bd [layers] Stats on memory usage in the Stats screen. Tracks the number and total memory size of the pages (bitmaps) used by layers and their backups. Doesn't count housekeeping costs.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1074 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-13 19:07:58 +00:00
Yves Rizoud
7690cd9e50 [layers] Added functions to add and delete layers (Keyboard shortcuts alt-ins and alt-del) Now defaults back to 1 layer per image on startup.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1073 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-13 01:03:32 +00:00
Yves Rizoud
64f1449a3b [layers] Merged in the changes from r1070.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1072 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-12 23:50:09 +00:00
Yves Rizoud
d9e95ae921 (trunk) Tell svn to ignore changes in gfx2.cfg
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1071 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-12 23:39:49 +00:00
Yves Rizoud
9e866aec5c (trunk) Added shortcuts to more layers tools. Remove gfx2.cfg from versioning, so anybody can use his own (get http://grafx2.googlecode.com/svn-history/r1036/trunk/gfx2.cfg to recover latest version in your workspace)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1070 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-12 23:32:40 +00:00
Yves Rizoud
2049f96c59 [layers] Implemented layer insertion. No keys or menu yet, but it's already used when loading images, to make an image with right number of layers. Undoing/redoing such change works. Implemented single-layer deletion (untested)
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1069 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-08 23:54:02 +00:00
Yves Rizoud
dc70d2f59f [layers] Merged-in the trunk changes (support for variable-height menu bar). Color replacer now works. Saving non-layer formats issues a warning and saves flattened version of the visible layers.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1068 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-08 21:41:25 +00:00
Yves Rizoud
eb1878e413 [layers] Fix a merge error from last commit which disabled layer selection. Implemented Fill. Color replacer in progress (ie: it crashes).
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1067 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-08 00:58:45 +00:00
Yves Rizoud
953185205d Internal support for variable-height menu
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1066 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-07 22:27:14 +00:00
Yves Rizoud
0b07b43722 [layers] Merged r1063 from trunk. Separated the controls for layers from translucency keys. Can now control up to 8 layers
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1065 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-07 00:07:27 +00:00
Yves Rizoud
2f1888e50d [layers] Implemented 'Copy to spare - pixels'. It replaces the current layer in the spare, resizing the whole spare (all layers) as needed.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1064 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-06 23:28:37 +00:00
Yves Rizoud
6f8223b09b trunk: Continued the handling of multiple effect on single shortcuts. Multiple window-open work (one after an other), and the restriction on shortcuts that are disabled while drawing is now applied correctly.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1063 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-06 23:24:00 +00:00
Yves Rizoud
5fd28bdd3b trunk: Reserved hotkeys for layers. Allowed a single shortcut to launch several actions (Issue 88)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1062 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-06 22:42:43 +00:00
Adrien Destugues
bdf0186c7f -Added help about rgb option
-Better formatting of the video mode list


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1061 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-06 12:26:29 +00:00
Yves Rizoud
874ccd4430 [layers] Fix a bug with scroll. Implemented basic save/load of layers in GIF as non-looping animation.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1058 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-04 01:25:38 +00:00
Adrien Destugues
f253728e5e Somewhat fixed joystick cursor management on gp2X... doesn't work so well but still, it's useable now.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/release@1054 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-03 13:14:24 +00:00
Adrien Destugues
33c371798d Fix build on gp2x. Joystick handling of cursor is moving way too fast on the small 320x240 screen, but I can't understnad why...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/release@1053 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-03 12:33:52 +00:00
Yves Rizoud
416ad0cd78 [layers] Added missing screen refresh on 'Kill page'
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1051 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-01 22:23:54 +00:00
Yves Rizoud
56e62c4b47 [layers] Fixed many embarrassing memory overruns and uninitialized memory reads. Woops.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1050 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-01 22:11:26 +00:00
Yves Rizoud
9be9ed9c17 [layers] Sped up the switching from one active layer to another, when the new layer was already displayed (thanks to the depth buffer, again)
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1049 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-30 21:37:16 +00:00
Yves Rizoud
20b1aef7f5 [layers] cleanup
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1048 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-29 18:49:00 +00:00
Yves Rizoud
61f0a4ec71 [layers] Sped up the scrolling/adjusting of single layers. Speed is no longer relative to the number of visible layers. Pulkomandy, your idea of depth buffer was genius.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1047 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-29 17:57:43 +00:00
Yves Rizoud
473679ce29 [layers] Implemented shared layers. Speeds up Backup() by 800. Little unrelated bug: On program start, use 'tab' at least once, or the undo buffers won't be updated on screen.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1046 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-28 22:00:04 +00:00
Yves Rizoud
2fd88b81bb [layers] work on layer sharing (still stable)
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1045 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-28 21:01:29 +00:00