1554 Commits

Author SHA1 Message Date
Yves Rizoud
4e9733a83d Remove WIP label; Update Windows (NSIS) installer
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2024 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-10-01 20:59:35 +00:00
Yves Rizoud
46d3207c7e Makefile: fix missing files in packages: Tiler.lua, haiku.cpp, Grafx2_Prefix.pch, SDLMain.m, grafx2.info
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2023 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-10-01 19:11:36 +00:00
Yves Rizoud
b0624b17ac Default settings: 20 undo pages, 16x4 vertical palette
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2022 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-30 17:58:59 +00:00
Yves Rizoud
fbdde8d16c Issue 490: color 255 selected FG by default
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2021 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-30 16:25:52 +00:00
Yves Rizoud
919357ab46 Fix crash when loading 24-bit brushes
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2020 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-29 16:01:53 +00:00
Yves Rizoud
eb882524cd Brush factory: display current path on top
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2019 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-29 15:00:12 +00:00
Yves Rizoud
b7dd1bd0ec Fix compilation error from r2016
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2018 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-28 23:19:25 +00:00
Yves Rizoud
24e5467c14 Issue 497 cont'd. AROS: Set Amiga-C and Amiga-V as cut and paste (used in palette and text fields)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2017 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-28 23:02:29 +00:00
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