1546 Commits

Author SHA1 Message Date
Yves Rizoud
4f74d16982 Issue 497: Right-Windows key (aka Right-Super key) now acts as the Meta modifier. Meta modifier is now labelled A (specific graphic) on AROS and Super on all platforms besides OSX which has its own character. Added a few defaults AROS-specific secondary default shortcuts.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2016 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-28 22:33:10 +00:00
Adrien Destugues
76222af12a * Brush factory: Drive entries in fileselector don't have an icon on some platforms
* File selector: remove BeOS quirk for getting home directory (the OS was fixed), and try to guess the drive type for UNIX OSes (untested)

Fixes #492.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2015 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-28 18:19:31 +00:00
Yves Rizoud
26613ec440 Program now remembers favorite mode layers/anim, based on last time you switched in splash screen or toolbar. Fixed graphic behavior when mode 5 is enabled/disabled, and added a safety (colors <4).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2014 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-28 00:19:57 +00:00
Yves Rizoud
5165312bff Upgrate Lua sample scripts to DawnBringer's 1.3 toolbox
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2013 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-28 00:04:55 +00:00
Yves Rizoud
effde4aee2 Issue 473: Fix mouse droppings in Brush rotate tool when you hold Shift
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2012 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-26 23:13:04 +00:00
Yves Rizoud
d8fd3d33a4 Fix issue 473: Brush-rotate cursor has display issues
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2011 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-26 00:37:49 +00:00
Yves Rizoud
007f15b657 Brush distort: Fix a big remapping bug that often caused the brush to disappear entirely after distort (all color zero)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2010 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-25 22:52:58 +00:00
Yves Rizoud
69f24bc69f Text tool: Fix issue 487 (pasting from clipboard 'resurrects' older long string) and fix a mouse cursor dropping.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2009 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-25 22:27:02 +00:00
Yves Rizoud
1efe6ec5be Fix issue 460: brush 180° rotation. Also, the keyboard shortcut had no effect at all
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2008 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-25 22:05:32 +00:00
Yves Rizoud
030f4a716f Splash screen asks the user for Layers/Anim mode
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2007 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-23 18:18:06 +00:00
Yves Rizoud
dc960c2f4e Fixed fileselector on linux, displayed always hidden directories but never 'parent dir'
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2006 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-22 17:58:23 +00:00
Yves Rizoud
f7d9cc1a90 Fixes support of Lua 5.0 and 5.1, and a compilation warning on Linux
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2005 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-22 17:51:37 +00:00
Yves Rizoud
01690f7df1 Fix compilation error on Linux, introduced by r1994 (issue 506)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2004 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-22 17:13:48 +00:00
Yves Rizoud
80fc7da7f6 Fix issue 462: Save/Load path problems: Main, Spare and Brush now have completely distinct fileselector settings.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2003 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-22 16:47:39 +00:00
Yves Rizoud
5a2e556f18 Fix a problem when exporting a single layer or anim frame, the chosen format was kept as the file's 'current format'. Also improve Brush load/save which has now mostly separate settings
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2002 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-21 20:10:33 +00:00
Yves Rizoud
440f04ad4f Fix issue 508: corrupted graphics when switching between layers and anim modes
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2001 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-21 18:54:53 +00:00
Yves Rizoud
2e16f0bec3 Lua version now displayed in stats. Now using Lua 5.2 on Windows. Add modified gfx2def.ini, forgotten in previous revision
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2000 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-19 21:09:07 +00:00
Yves Rizoud
144a28412b Issue 453 : Virtual keyboard setting
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1999 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-18 23:41:55 +00:00
Yves Rizoud
b31cf6b61e Lua inputbox() : Fix an issue with label lines: putting a label at line N was disabling the Nth control button on the screen.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1997 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-18 21:53:41 +00:00
Yves Rizoud
fdedfd628b Fix an incomplete screen update when you click the top of a button (pressed state), was only visible on toolbar Anim (when menu ratio is x2 or x3) or layers/status (when menu ratio is x3).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1996 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-18 21:04:55 +00:00
Yves Rizoud
48bb895147 Fixed side effect of issue 498 in fileselector. Also fixed possible crash when you change format filter while highlighted filename has less than 3 characters, and made the display 'follow' selected file/dir when you change filter if it's still in list.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1995 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-17 23:40:09 +00:00
Yves Rizoud
95b537e5f0 Fix issue 506: Missing 'parent directory' in fileselector
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1994 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-17 21:11:44 +00:00
Yves Rizoud
56cdbc4c10 Issue 505: Support for saving IFF/ILBM format, compatible with Deluxe Paint 3
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1993 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-15 18:05:44 +00:00
Yves Rizoud
3ae0ff5edf Lua inputbox: support for labels. Labels are defined with min=max=0
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1992 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-24 13:46:42 +00:00
Yves Rizoud
5d69b71cf9 Issue 501: Lua function run() now converts Unix 'parent directory' to AROS format. To be tested/reviewed on the actual platform! Function also converts antislashes to slashes on all platforms.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1991 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-15 17:15:49 +00:00
mazzearos
d616d44f97 AmigaOS,MorphOS,AROS: show the "assigns", too.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1990 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-14 12:16:18 +00:00
Yves Rizoud
f507cb7bcb Fix error handling in Lua function run(). Made the samples use run() instead of dofile()
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1989 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-11 22:06:11 +00:00
Yves Rizoud
b1f6a0329b Issue 494: fixed code to compile as well with Lua 5.1 and 5.2
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1988 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-11 21:16:21 +00:00
Yves Rizoud
a43c9eb31b Yet another fix for GIF loading of animations. Fixes case when Backcolor is different from Transparent color, such as this image http://i49.tinypic.com/35j08j4.gif (WIP by Hapiel)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1987 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-11 20:38:06 +00:00
Yves Rizoud
de1c8f9a8e Lua: added run(), which works like dofile() but supports nested calls with subdirectories, and includes a safety against infinite recursion. See also issue 501
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1986 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-11 18:38:50 +00:00
Yves Rizoud
f0041625a7 Fix issue 498: Now in fileselector, clicking the filename clears it if the highlighted 'file' was a directory or drive or the 'parent directory' entry
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1985 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-11 16:49:10 +00:00
Yves Rizoud
a630a84822 Removed all usage of __attribute__((unused)), replaced by void cast which is supported both on GCC and VBCC
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1984 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-11 16:19:07 +00:00
mazzearos
8621253165 Oops, forgot to revert some test code with my previous commit (#1979).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1980 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-05 08:58:26 +00:00
mazzearos
d28a1df60b Renamed Find_last_slash() to Find_last_separator() to make purpose more clear.
Append_path():
- when adding sub directories: don't add a "/" when last separator is a ":".
- when climbing upwards: don't remove the ":" it it's the last separator.

Those fixes help the file selector for scripts on AROS.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1979 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-05 08:51:16 +00:00
mazzearos
d31b865482 Fixed RealPath() for AROS. Because we are building GrafX2 without Unix support we must use the "Amiga" way of defining the current path.
Reverted setup.h. I had drawn wrong conclusions because of the buggy RealPath().


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1978 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-04 07:39:18 +00:00
mazzearos
ce8fbe076d Started to add Lua support to AROS.
src/Makefile: link with lua. Note that I'm currently using an absolute path to include/lua
which only exits on my machine until AROS has support for pkg-config.

src/setup.h: added valid path to lua scripts.

src/io.c: take colon into account when checking for last separator.

src/factory.c: use luaL_newstate() instead of lua_open() because latter doesn't exist anymore in Lua-5.2.
Note: that fix should be valid for all platforms.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1977 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-03 19:10:44 +00:00
mazzearos
18886d86cb Added clipboard support for AROS.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1976 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 22:10:04 +00:00
mazzearos
12501833df Two more fixes for AROS to avoid paths like volume:/file.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1975 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 18:26:04 +00:00
mazzearos
469431446e Fix for my previous commit (r1973): Print only the volume
name. Limit length to 8 because exceeding the requester
border leeds to crashes.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1974 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 16:51:38 +00:00
mazzearos
7e7c718d40 AROS has working statfs(), so lets use it for printing the free disk size.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1973 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 16:02:33 +00:00
mazzearos
c68f05cda5 Some fixes for AROS:
src/text.c: Added path for truetype fonts.

src/Makefile: Create GrafX2 binary in the root directory. This allows
running without any prior installation.

src/readline.c: Added ':' to the forbidden charactersS.

src/const.h: Use '/' as indicator for parent directory.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1972 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 13:02:00 +00:00
mazzearos
ce2d12a0a8 AROS: check for ':' to avoid paths like PROGDIR:/filename.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1971 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 10:56:08 +00:00
mazzearos
113d6423b4 src/init.c: bail out if skin_name or font_name is "".
Fixes a crash on AROS

src/filesel.c: fixed BSTR conversion routine for AROS.
Without this fix "RAM DISK" was printed as "AM DISK" in
the file selector.

src/setup.c: removed slash to avoid that paths like
"PROGDIR:/share" are created on AROS. That fix should be right
for all Amiga like OS but I don't want to change things
which I can't test.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1970 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 09:19:07 +00:00
Yves Rizoud
7613093df9 Fix issue 496: Some animated GIF images don't load well. Also fixed the handling of transparency in preview (fileselector) and loading anim GIF as a brush loads first frame.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1969 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-07-12 22:27:49 +00:00
Yves Rizoud
2aa72730ad Fix issue 495 : Contour fill crashes on new anim frame, and possibly random crashes when adding anim frames
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1968 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-07-10 23:03:29 +00:00
Adrien Destugues
86d67e4658 * Fix CPC palette for Mode 5 files : add 'undocumented' color codes
* Fix "layer support" detection, it didn't work for Mode 5.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1966 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-06-24 18:03:21 +00:00
Yves Rizoud
dee88e4517 Fix a memory corruption that's been lurking in 'setpicturesize' (for Lua scripts) since r1611 (September 2010) but only affected multi-layered images.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1965 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-06-21 18:03:54 +00:00
Adrien Destugues
b437d458d4 CPC Mode 5 fixes :
* Be case unsensitive when looking for the GFX-file,
 * When an underlay is hidden, do not use it and replace it with color 0, 1, 2 or 3. Allows to see pixel data 
alone or disable rasters on one color, as it's possible to get confused quite easily.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1964 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-06-13 19:50:35 +00:00
Adrien Destugues
ba46f1fd21 * Use the left triangle char for parent directory instead of '<-'
* Make sure parent directory is alway listed first, even when some dir names start with ! (yes, I do use that, as a trick to make sure they list first)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1963 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-06-09 21:00:49 +00:00
Adrien Destugues
d4d57f750d In brush factory, when the selected entry is not a file, display the full path in the description window.
Since the factory can open in an empty or even non-existing (!) dir, this is helpful to locate where you are.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1962 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-06-09 20:41:05 +00:00