1730 Commits

Author SHA1 Message Date
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
cd8f3e40da * Save CM5 files. There seem to be a problem with "Supports_layers" field. setting it to 1 still triggers the warning that image will be flatenned...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/cpcmode5@1724 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-15 19:34:36 +00:00
Adrien Destugues
bf9c34d7fe Code for loading "CM5" (CPC Mode 5) pixtures
* Fix a bug in the Set_layer function : it was only possible to set a new layer, and this format needs us to write to previous layers too
 * Saving is missing (you need to save as png then convert back to cm5 using SyX converter)
 * Preview does not work (it does not use layers, so the result is broken)
 * Loading switches the "8bit" mode on automatically

git-svn-id: svn://pulkomandy.tk/GrafX2/branches/cpcmode5@1723 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-15 17:48:16 +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
Adrien Destugues
4e60f5ad74 Import the WIP CPC-Mode5 code from the sourcearchive
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/cpcmode5@1718 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-13 21:20:45 +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
af857c09c9 Save and load color cycling information (and gradients, anyway) in PNG format (issue 365)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1713 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-08 23:30:13 +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
nokturnal
fdb925979e compilation fixes for atari port
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1711 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-07 13:37:12 +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
Yves Rizoud
57a1bda6de Improved text with bitmap fonts : Works great with 'Get brush colors' (F11) to import the exact font colors.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1708 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-05 19:43:51 +00:00
Yves Rizoud
065503ef64 Improved text rendering in Truetype mode (with and without antialias), thanks to the improved brush remapping. Still todo: bitmap fonts, colored and monochrome cases.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1707 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-05 00:07:28 +00:00
Yves Rizoud
5a8972d0f9 Fix an issue with files since the adding of xpm saving
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1706 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-30 19:35:29 +00:00
Yves Rizoud
7150a1ebcd Fix issue of changes in brush by Lua that didn't survive remap (ex: script Halfsmooth)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1705 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-30 15:52:56 +00:00
Yves Rizoud
4d3431afd4 Fix lasso, broken in last commit
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1704 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-30 14:42:33 +00:00
Yves Rizoud
1b0141367e Import colors from brush now works (F11)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1703 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-30 00:59:52 +00:00
Yves Rizoud
abadd59b12 Brush container saves and restores the right palette
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1702 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-30 00:17:47 +00:00
Yves Rizoud
5d2dd927e4 Much work on color brushes (issue 362). You can rotate, resize, flip etc. without losing original palette.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1701 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-30 00:03:38 +00:00
Yves Rizoud
e01b310317 Some work on brush remapping
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1700 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-29 21:20:54 +00:00
Yves Rizoud
40a7bcf40e Changes on brushes memory management, in preparation for Issue 362
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1699 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-27 19:52:36 +00:00
Yves Rizoud
e7842861f7 Finished Issue 400:Button for changing stylus click into right click behavior
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1693 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-23 16:34:14 +00:00
Yves Rizoud
14a859f711 Key to swap buttons: reduced choices to Ctrl (default) and Alt
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1692 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-22 19:02:28 +00:00
Yves Rizoud
7ef353e8fd Issue 400:Button for changing stylus click into right click behavior. Done with actual keyboard keys, now to do joystick buttons
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1691 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-22 17:15:17 +00:00
Yves Rizoud
eebf3784c3 Fix makefile for deleted scripts
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1690 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-19 21:44:22 +00:00
Yves Rizoud
cd9552ee58 Lua: Added waitinput(), for more interactive scripts. Works well, but kept under observation for better ideas etc.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1689 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-19 21:37:46 +00:00
Adrien Destugues
83ecd4a6e8 Patch by sm4tik (arch linux packager): allow putting the icons in pixmap/ instead of icons/. Thanks!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1684 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-17 19:29:57 +00:00
Adrien Destugues
4e35de8611 Add code to save XPM files.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1682 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-16 15:07:50 +00:00
Adrien Destugues
2801345545 * Add script by dawnbringer that does an ellipse animation
* Add lua binding 'setmessage' to set the statusbar message. Nte this is reset by waitbreak() for now, so you have to do it before each call to updatescreen.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1672 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-05 18:08:46 +00:00
Yves Rizoud
f24d4a55bd Lua script selector: can now browse directories. Todo: handle double-click.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1668 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-22 02:21:26 +00:00
Adrien Destugues
243c9192c5 Correct font path for Haiku.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1667 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-21 12:06:05 +00:00
Adrien Destugues
65ede7dd91 The warning ehen there is an error with font may be bigger than screen. Use verbose_message instead (but it looks ugly)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1666 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-21 11:28:17 +00:00
Adrien Destugues
20034ef2ae Fix build under Haiku.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1665 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-21 09:49:02 +00:00
Yves Rizoud
b849cc1706 Lua: added finalizepicture()
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1664 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-18 23:42:43 +00:00
Yves Rizoud
4fc9c2ef30 Lua: changed sleep() to wait() and waitbreak() that are now in seconds, and the last one returns early with a value of 1 if user hit esc. They allow delay of zero if you only want to poll keyboard/mouse and update mouse position. Added updatescreen(): It must be followed by wait() or waitbreak(), because of the double-buffer screen system. See the Sierpinski scripts for example usage.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1662 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-18 20:03:59 +00:00
Yves Rizoud
6e316937f4 Lua: added sleep command
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1661 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-18 17:48:36 +00:00
Yves Rizoud
9b4be3abd1 Modified filelists so that they can support arbitrary width. Generalized the 'quicksearch' system and implemented it in Brush Factory screen: Type some letters to locate matching filename.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1660 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-17 00:56:58 +00:00
Yves Rizoud
e886553314 Fix issue 401: Touchscreen adaptation for Caanoo and Wiz
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1659 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-12 18:55:55 +00:00
Yves Rizoud
7aefad850d Fix issue 396: increasing Saturation makes greyscale red
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1658 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-12 18:09:11 +00:00
Yves Rizoud
c2cd990108 Lua: Added setforecolor() and setbackcolor() (Issue 402)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1652 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-03 19:01:08 +00:00
Yves Rizoud
c55b9854df Makefile fixes for OSX, kindly contributed by gruber.kristof (Issue 397)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1651 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-12-01 14:22:35 +00:00
Yves Rizoud
3797966fa7 Fix a warning
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1650 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-14 14:57:23 +00:00
masta.uy
0bfc627094 Some minor changes to make it compile on AROS.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1649 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-13 20:05:12 +00:00
Yves Rizoud
aeb7f26809 Fix issue 398 : Grafx2 not detecting mouse button release.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1648 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-09 22:21:30 +00:00
Yves Rizoud
a38b7336e6 Fix help screens: since r1532, short texts were padded with a black rectangle on top instead of bottom.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1646 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-07 21:57:15 +00:00
Yves Rizoud
7a3ae5824a Merged the specifics of Caanoo 1.2 port by Pheel + Enabled TTF text on Caanoo
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1645 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-05 01:03:11 +00:00
Yves Rizoud
a59de659bd Fix crash when using gradient-filled functions without entering Gradient screen before. Thanks to PheeL for report
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1644 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-05 00:27:21 +00:00
Yves Rizoud
0ede7c43cd Fix 'About' screen not enitrely redrawn. Thanks to Pheel for report
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1643 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-05 00:09:56 +00:00
Yves Rizoud
70b558c7c5 Solve choppy mouse movement (and unusual CPU usage) when a joystick exists (even when compiled without joystick support). Fixes the emulated cursor movement that was unusable when compiled with joystick. Redid the cursor acceleration system.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1642 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-05 00:03:55 +00:00