72d8f5a49dApply patch from #305 and #525. Use FontConfig on linux to get true type fonts instead of the X11 functions.
Adrien Destugues
2013-02-02 08:45:33 +00:00
1dce247656Improve XOR table computation. Set the initial state to XOR[i]=i, so that on very low color images, the algorithm will try to swap around the first colors.
Adrien Destugues
2013-02-02 08:38:08 +00:00
878c926ce4Fix issue 185 (XOR highlight) : * Use a simple optimization algorithm to compute a good set of XOR color pairs * Algorothm is not very optimized (complexity is up to n^3). In practize, it stabilizes after 2 to 3 rounds of swapping colors * Use this color table for all XOR effects * Setting for grid color is now removed
Adrien Destugues
2013-01-06 12:46:46 +00:00
65194af002Use some macro magic to avoid repeating the list of graphic primitives for each pixel renderer.
Adrien Destugues
2013-01-06 11:23:24 +00:00
8f76bce566Quick try at issue #185 (XOR highlight optimal color repartition). Untested, need to plug it at the right places and debug it.
Adrien Destugues
2013-01-05 21:01:08 +00:00
28c4677021bugfinders: Use real name as requested
Adrien Destugues
2012-12-30 11:01:05 +00:00
dc84858ca5Add mikerinet to list of bugfinders.
Adrien Destugues
2012-12-29 18:59:53 +00:00
92e438bde5* Add codenet lua script (linux only for now) to send pictures to a runnning C64 * Fix C64 multicolor format : - Improve background color detection - Do not save as FLI unless the file extension matches
Adrien Destugues
2012-12-29 18:58:07 +00:00
eb882524cdBrush factory: display current path on top
Yves Rizoud
2012-09-29 15:00:12 +00:00
b7dd1bd0ecFix compilation error from r2016
Yves Rizoud
2012-09-28 23:19:25 +00:00
24e5467c14Issue 497 cont'd. AROS: Set Amiga-C and Amiga-V as cut and paste (used in palette and text fields)
Yves Rizoud
2012-09-28 23:02:29 +00:00
4f74d16982Issue 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.
Yves Rizoud
2012-09-28 22:33:10 +00:00
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)
Adrien Destugues
2012-09-28 18:19:31 +00:00
26613ec440Program 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).
Yves Rizoud
2012-09-28 00:19:57 +00:00
007f15b657Brush distort: Fix a big remapping bug that often caused the brush to disappear entirely after distort (all color zero)
Yves Rizoud
2012-09-25 22:52:58 +00:00
69f24bc69fText tool: Fix issue 487 (pasting from clipboard 'resurrects' older long string) and fix a mouse cursor dropping.
Yves Rizoud
2012-09-25 22:27:02 +00:00
1efe6ec5beFix issue 460: brush 180° rotation. Also, the keyboard shortcut had no effect at all
Yves Rizoud
2012-09-25 22:05:32 +00:00
030f4a716fSplash screen asks the user for Layers/Anim mode
Yves Rizoud
2012-09-23 18:18:06 +00:00
dc960c2f4eFixed fileselector on linux, displayed always hidden directories but never 'parent dir'
Yves Rizoud
2012-09-22 17:58:23 +00:00
f7d9cc1a90Fixes support of Lua 5.0 and 5.1, and a compilation warning on Linux
Yves Rizoud
2012-09-22 17:51:37 +00:00
01690f7df1Fix compilation error on Linux, introduced by r1994 (issue 506)
Yves Rizoud
2012-09-22 17:13:48 +00:00
80fc7da7f6Fix issue 462: Save/Load path problems: Main, Spare and Brush now have completely distinct fileselector settings.
Yves Rizoud
2012-09-22 16:47:39 +00:00
5a2e556f18Fix 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
Yves Rizoud
2012-09-21 20:10:33 +00:00
440f04ad4fFix issue 508: corrupted graphics when switching between layers and anim modes
Yves Rizoud
2012-09-21 18:54:53 +00:00
2e16f0bec3Lua version now displayed in stats. Now using Lua 5.2 on Windows. Add modified gfx2def.ini, forgotten in previous revision
Yves Rizoud
2012-09-19 21:09:07 +00:00
b31cf6b61eLua inputbox() : Fix an issue with label lines: putting a label at line N was disabling the Nth control button on the screen.
Yves Rizoud
2012-09-18 21:53:41 +00:00
fdedfd628bFix 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).
Yves Rizoud
2012-09-18 21:04:55 +00:00
48bb895147Fixed 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.
Yves Rizoud
2012-09-17 23:40:09 +00:00
56cdbc4c10Issue 505: Support for saving IFF/ILBM format, compatible with Deluxe Paint 3
Yves Rizoud
2012-09-15 18:05:44 +00:00
3ae0ff5edfLua inputbox: support for labels. Labels are defined with min=max=0
Yves Rizoud
2012-08-24 13:46:42 +00:00
5d69b71cf9Issue 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.
Yves Rizoud
2012-08-15 17:15:49 +00:00
d616d44f97AmigaOS,MorphOS,AROS: show the "assigns", too.
mazzearos
2012-08-14 12:16:18 +00:00
f507cb7bcbFix error handling in Lua function run(). Made the samples use run() instead of dofile()
Yves Rizoud
2012-08-11 22:06:11 +00:00
b1f6a0329bIssue 494: fixed code to compile as well with Lua 5.1 and 5.2
Yves Rizoud
2012-08-11 21:16:21 +00:00
a43c9eb31bYet 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)
Yves Rizoud
2012-08-11 20:38:06 +00:00
de1c8f9a8eLua: added run(), which works like dofile() but supports nested calls with subdirectories, and includes a safety against infinite recursion. See also issue 501
Yves Rizoud
2012-08-11 18:38:50 +00:00
f0041625a7Fix issue 498: Now in fileselector, clicking the filename clears it if the highlighted 'file' was a directory or drive or the 'parent directory' entry
Yves Rizoud
2012-08-11 16:49:10 +00:00
a630a84822Removed all usage of __attribute__((unused)), replaced by void cast which is supported both on GCC and VBCC
Yves Rizoud
2012-08-11 16:19:07 +00:00
8621253165Oops, forgot to revert some test code with my previous commit (#1979).
mazzearos
2012-08-05 08:58:26 +00:00
d28a1df60bRenamed Find_last_slash() to Find_last_separator() to make purpose more clear.
mazzearos
2012-08-05 08:51:16 +00:00
d31b865482Fixed 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().
mazzearos
2012-08-04 07:39:18 +00:00
ce8fbe076dStarted to add Lua support to AROS.
mazzearos
2012-08-03 19:10:44 +00:00
18886d86cbAdded clipboard support for AROS.
mazzearos
2012-08-02 22:10:04 +00:00
12501833dfTwo more fixes for AROS to avoid paths like volume:/file.
mazzearos
2012-08-02 18:26:04 +00:00
469431446eFix for my previous commit (r1973): Print only the volume name. Limit length to 8 because exceeding the requester border leeds to crashes.
mazzearos
2012-08-02 16:51:38 +00:00
7e7c718d40AROS has working statfs(), so lets use it for printing the free disk size.
mazzearos
2012-08-02 16:02:33 +00:00
c68f05cda5Some fixes for AROS: src/text.c: Added path for truetype fonts.
mazzearos
2012-08-02 13:02:00 +00:00
ce2d12a0a8AROS: check for ':' to avoid paths like PROGDIR:/filename.
mazzearos
2012-08-02 10:56:08 +00:00
113d6423b4src/init.c: bail out if skin_name or font_name is "". Fixes a crash on AROS
mazzearos
2012-08-02 09:19:07 +00:00
7613093df9Fix 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.
Yves Rizoud
2012-07-12 22:27:49 +00:00
2aa72730adFix issue 495 : Contour fill crashes on new anim frame, and possibly random crashes when adding anim frames
Yves Rizoud
2012-07-10 23:03:29 +00:00
86d67e4658* Fix CPC palette for Mode 5 files : add 'undocumented' color codes * Fix "layer support" detection, it didn't work for Mode 5.
Adrien Destugues
2012-06-24 18:03:21 +00:00
dee88e4517Fix a memory corruption that's been lurking in 'setpicturesize' (for Lua scripts) since r1611 (September 2010) but only affected multi-layered images.
Yves Rizoud
2012-06-21 18:03:54 +00:00
b437d458d4CPC 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.
Adrien Destugues
2012-06-13 19:50:35 +00:00
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)
Adrien Destugues
2012-06-09 21:00:49 +00:00
d4d57f750dIn 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.
Adrien Destugues
2012-06-09 20:41:05 +00:00
ff9f228b5fOn Haiku, there are two different versions of gcc available (gcc2 and gcc4). Since mixing them in the same binary result in linker error, build them in separate dirs.
Adrien Destugues
2012-06-02 09:05:54 +00:00
125207cfc8Build fix on Debian/kFreeBSD. I hope it doesn't create problems with the (older) libc version in Haiku...
Adrien Destugues
2012-06-02 08:54:44 +00:00
c87fa6ede7Fix a graphical mouse bug that happened when toolbar was hidden and you moved the mouse from layer button to image. Fix layer preview that disappeared when you clicked on layer button
Yves Rizoud
2012-05-14 14:05:12 +00:00
7443239566Fix issue 477: Crash when browsing drives that have no 'parent directory' entry
Yves Rizoud
2012-05-13 14:55:33 +00:00
5864569bd6Updated version of skin 'Scenish' by iLKke
Yves Rizoud
2012-05-13 13:19:08 +00:00
493d998375Use pkg-config to detect libpng when building for unix, this helps with Debian package system.
Adrien Destugues
2012-05-13 07:02:13 +00:00
2aa9ea7f8e* Load Microsoft RIFF palette files * Make byte, word, dword, qword typedefs instead of defines.
Adrien Destugues
2012-05-12 14:05:40 +00:00
235f7d4d1cJust fix some warnings for Haiku as well. One of them was a missing prototype, the other was likely some strangeness in the definition of size_t.
Adrien Destugues
2012-05-12 11:48:39 +00:00
93c4832138Saving as palette format no longer shows warning about lyaer/anim support. Loading a single file in command-line makes the spare use the same mode (layer/anim), so that the menus don't move when you switch
Yves Rizoud
2012-05-08 18:55:17 +00:00
2afad0b550Fix issue 483 : Saving layers/anim as non-GIF saves only layer/frame 0. Now with anim it asks confirm then saves current frame, and for layers it allows saving current layer or flattened copy.
Yves Rizoud
2012-05-08 15:39:48 +00:00
21659e9aeeReverted Dpaint skin, I accidentally replaced some time ago with one of my variants
Yves Rizoud
2012-05-05 23:56:10 +00:00
3684509dc6Fix the elusive crash that happened in anim mode after resizing the image; Thanks to iLKke again.
Yves Rizoud
2012-05-05 23:48:22 +00:00
d29bbee941Fix an error when loading layered image that used a transparent color different from zero ,which resulted in corrupted image. Thanks iLKke!
Yves Rizoud
2012-05-05 16:01:14 +00:00
bbd0d0114cFix an error in previous commit. Zero warnings on Windows too (Mingw, gcc 4.4.1-TDM)
Yves Rizoud
2012-05-03 22:46:04 +00:00
d8bb1e1d55Fix some mostly harmless warnings and re-generated dependencies. Now compiles with zero warnings on Linux (gcc 4.1.2)
Yves Rizoud
2012-05-03 21:32:59 +00:00
6316fc2addFix second part of issue 459 : In anim mode, polybrush-grab with the right mouse button didn't clear the cut area.
Yves Rizoud
2012-04-09 14:55:44 +00:00
064bbebc5bFix part of issue 459: In anim mode, Color-replacer didn't refresh the screen
Yves Rizoud
2012-04-08 14:45:56 +00:00
020e57846bLayer preview now only appears if there's at least 2 layers. Fixed the preview not reappearing after using a keyboard shortcut (ex: scrolling with arrow keys)
Yves Rizoud
2012-04-07 19:31:20 +00:00
4fe4ccd7b0Added safeties for Mode5: Mode will only switch on if the image has the required layers and a compatible width.
Yves Rizoud
2012-03-30 22:27:09 +00:00
95482d3f17Tilemap settings window: removed empty space, and the mode is switched ON if you exit this window using the OK button
Yves Rizoud
2012-03-30 22:06:37 +00:00
c5f9bb354dTilemap mode: added a missing tile refresh after using the scroll(pan) tool. Added a few Doxygen comments.
Yves Rizoud
2012-03-30 21:46:54 +00:00
a137e063f0Fix a crash that happened in Palette screen when right-clicking near top of screen: it opened the 'Copy/Paste' dropdown outside of screen edge. Now this dropdown menu only appears when you click in the palette area
Yves Rizoud
2012-03-25 14:44:29 +00:00
2e5b97eb41More fixes on layer preview. Layer buttons now activate on click instead of release.
Yves Rizoud
2012-03-25 14:23:50 +00:00
cd5b3346b0More adjustments of layer preview : images less wide than a layer button are not zoomed more than normal size, and a max height is applied (Screen_height/4)
Yves Rizoud
2012-03-24 19:50:06 +00:00
c6479d22f6Layer pop-up preview now has higher resolution (bypasses pixel ratio and menu zoom)
Yves Rizoud
2012-03-24 18:55:49 +00:00