Adrien Destugues
78fcc648c3
Partial merge of the SDL2 branch into trunk
...
* Mainly get the cleanup of window drawing functions.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2102 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-02 13:44:18 +00:00
Adrien Destugues
e19026860d
Update the URLs in several place to stop pointing to googlecode.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2069 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2014-01-13 12:36:22 +00:00
Yves Rizoud
365cc8d50b
Fix issue 539 : Freeze when palette is 'vertical' and number of rows is not a power of two
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2064 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-08-30 00:05:47 +00:00
Adrien Destugues
878c926ce4
Fix 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
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2048 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-01-06 12:46:46 +00:00
Yves Rizoud
e87f9140c7
Fix issue 516: Some changes can't be undone on animations > 32 frames
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2033 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-10-16 00:07:42 +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
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
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
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
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
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
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
Yves Rizoud
2afad0b550
Fix 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.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1950 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-08 15:39:48 +00:00
Yves Rizoud
bbd0d0114c
Fix an error in previous commit. Zero warnings on Windows too (Mingw, gcc 4.4.1-TDM)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1946 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-03 22:46:04 +00:00
Yves Rizoud
55f4884e34
Fix a few compilation warnings on Linux; Fix a possible bug in Mode5 loader; Removed a pair of debug printfs in realpath.c
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1933 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-14 19:17:35 +00:00
Yves Rizoud
145c9545e7
Fix the 'FX' button that didn't refresh its state when swapping pages between an image with Tilemap ON (button should be highlighted) and an image with Tilemap OFF (button not highlighted)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1928 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-11 16:50:28 +00:00
Yves Rizoud
747f9e8526
Fix most of issue 462 : Inconsistent directories in file selectors for image and brush.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1926 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-09 01:18:23 +00:00
Yves Rizoud
de6b3ac8d1
Toolbars now automatically switch to anim/layers when required
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1911 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-04 15:35:20 +00:00
Yves Rizoud
e73eb2786a
Animation now has correct visual display and input feedback. Loading GIF guesses it's an anim if it loops, layers otherwise : Some rare non-looping GIF anims (usaully broken) will be misunderstood as layered. Editing of anims and layers seems flawless and stable. Still requires an auto-switch to the best toolbar (anim/layers) when relevant, but you can already switch manually.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1910 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-02 23:19:47 +00:00
Yves Rizoud
db50b4ebdc
More unification of layers and anim version: toolbars work. You can switch toolbars by right-clicking the icon from status bar: it proposes 'Anim' only while the current image has 1 layer (see Button_toggle_toolbar()). The animation-specific stuff (rendering...) isn't activated yet, see all the NOLAYERS places remaining. Also will need a trick for keyboard shortcuts to work on multiple buttons, and extra code on swap-to-spare, undo, redo, load etc. to sync toolbars with Image_type.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1909 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-27 23:19:23 +00:00
Yves Rizoud
d38f5ee981
CPC mode 5 : replaced the global Constraint_mode by a state (Image_mode) in each versioned T_Page: This allows keeping it sane when swapping to Spare, and when Undo/Redoing. Also fixed the first page when program starts, it was unnecessarily allocating pointers for the maximum number of layers(16)/frames(999)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1907 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-27 00:47:18 +00:00
Franck Charlet
8ea1ab7fc8
fixed makefile for macosx again
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1905 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-20 19:56:52 +00:00
Adrien Destugues
836c224169
Display font dropdown in skin menu with the selected font.
...
Fixes #450 .
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1882 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-12-31 13:27:17 +00:00
Yves Rizoud
dae1bc856b
Tilemap mode: Undo and Redo only refresh tilemap when image size changes. Lua scripts that change image size also refresh tilemap
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1877 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-11-26 14:46:09 +00:00
Yves Rizoud
496148d485
Tilemap effect: Added a menu to set options. Options saved and reloaded in .INI. Added support for shortcuts (but no helpfile so far, so you can't set them)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1870 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-11-13 23:21:59 +00:00
Yves Rizoud
e7d37cf367
Tilemap: now separate for main and spare. Safeties added in most places necessary (auto-recompute tilemap after load, undo, etc)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1866 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-11-11 22:57:35 +00:00
Yves Rizoud
a60a33c204
Tilemap mode works, and it's faster than I thought possible.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1858 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-11-07 00:06:17 +00:00
Yves Rizoud
f1f658ded4
Start of tilemap. Only a togglable effect
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1856 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-11-06 19:03:27 +00:00
Yves Rizoud
51a9ad0132
Icon for effect '8-bit'. Added in all skins
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1844 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-10-25 22:15:14 +00:00
Yves Rizoud
8fb16e7089
Re-integrated anim in trunk, fixing the 999-layer limit at the same time
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1841 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-10-19 23:35:56 +00:00
Yves Rizoud
1f10338f60
Merged trunk into branches/mode5 (=update mode5 branch to latest)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/cpcmode5@1785 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-04-25 15:17:18 +00:00
Yves Rizoud
37d30ae114
Fix issue 428: Mouse cursor deadzones in fullscreen mode; also non-functional mouse in fullscreen if mouse speed (in options) was any other value than 'normal'. Mouse speed removed, it's impossible to make it work AND have working tablets -> Issue 317 re-opened. Added 2 missing bugfinders in credits
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1781 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-04-18 21:56:11 +00:00
Yves Rizoud
02ecd8d29d
Fix issue 432: Options/Input: Missing graphic update after changing a numeric value
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1778 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-04-14 19:43:16 +00:00
Yves Rizoud
860648b190
Multi-shorcuts option now works. Default OFF, it will avoid situations where user mistakenly sets the same key for multiple actions.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1769 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-04-04 22:30:02 +00:00
Yves Rizoud
1d24885ddc
Beginning of setting to disable multi-shortcuts: settable in options, saved and reloaded, no effect so far.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1768 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-04-04 19:34:15 +00:00
Yves Rizoud
04761c79c4
Unbroke the file selector (was listing only hidden files instead of non-hidden). Lua: can browse the whole filesystem now
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1761 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-04-02 17:43:16 +00:00
Yves Rizoud
9f8dada2b0
Lua window: Fix inconsistency of 'parent directory' appearance. Now applies the 'show hidden files/dirs' settings too.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1760 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-03-23 20:13:12 +00:00
Franck Charlet
431484914e
more work done on Mac OSX version
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1752 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-03-10 22:16:42 +00:00
Yves Rizoud
7caab79d21
Issue 425: Spray setting 'Init' is now minimum 1
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1742 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-03-01 18:10:32 +00:00
Yves Rizoud
cdd7f21265
Fxed and simplified double-click handling in Listboxes (Skins window, Text window, Factory window). Double-clicking a font in Text window 'accepts' the rendering and closes the window.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1736 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-26 17:43:55 +00:00
Yves Rizoud
80c37034f9
Fix a remap problem on brush, when modified by Lua script then transformed. Fix Brush remap to maintain transparent pixels. Fix Text tool , respects transparent pixels and preview is always visible (The black PF_ fonts are no longer shown on a black background)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1726 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-16 17:03:45 +00:00
Adrien Destugues
72e9892b53
Constraint mode is now switchable on/off in the effect screen.
...
I did some changes to the effect screen to make some space : instead of displaying an "on/off" label, we now keep the button pressed for active effects.
There is no "constraint menu" yet, we should allow to select different constraints there (C64, MO5, spectrum, ...) to activate their respective enforcer and plug the right thing to the associated checker.
This should eventually allow drawers to :
* Load any single-layer picture
* Select the mode they want to use (without enabling it)
* Run the checker and get the result as a multilayer (with an error layer)
* Then, once they feel enough issues are solved, switch to "enforcer" mode for further manual tweaking.
Now we need a checker for CPC Mode5... :)
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/cpcmode5@1721 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-14 13:37:35 +00:00
Adrien Destugues
eba26aaa96
Merge trunk to the cpcmode5 branch. This gets us a more recent grafx2 with the cpcmode5 drawing. Now to make this mode optional so users can still work in regular mode :)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/cpcmode5@1719 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-13 21:49:31 +00:00
Yves Rizoud
2378d8cedc
Fix remaining issue of gradients / color cycling.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1716 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-09 21:40:15 +00:00
Yves Rizoud
1e6c4d22bc
Default gradients (or cycles) are now loaded from skins. Initialized all current skins so that range 0 is a white->black range, this way the grad shapes are immediately efficient. Still has a problem when loading an image in command-line.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1714 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-09 00:57:33 +00:00
Yves Rizoud
ce3181b230
Fixed compilation warnings: a few missing declarations, and 2 strange casts on WIN32-specific code.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1712 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-07 19:39:45 +00:00
Yves Rizoud
d0aaabf6b2
Merge of r1709 into trunk: Atari Falcon port
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1710 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-06 19:30:55 +00:00