1636 Commits

Author SHA1 Message Date
Adrien Destugues
f4bfaeca89 Add scripts to color-reduce pictures with constraints
Scripts for various Thomson machines, Oric and ZX. All the hard work of
Samuel Devulder, with extensive research on color palette reduction
algorithms, lots of testing, research and debugging.

Thanks a lot!
2017-03-21 21:48:39 +01:00
Adrien Destugues
32b3996cb8 Add Gamma correction in palette editor
Particularly useful when working for platforms with non-linear palettes.
For example the Thomson TO8 has a Gamma correction of 2.8, so the
darkest shade of color is already very bright. It is important to take
this into account when drawing pictures to avoid bad surprises when
showing them on the real machine.

The setting is available from the command line, or from the extended
palette window, which gets a little relayout using horizontal sliders
now that these are available.
2017-03-19 09:49:35 +01:00
Adrien Destugues
2d4ad537ad Haiku: use pkg-config to find lua
The Lua package for Haiku now comes with a pkg-config file, and the
includes were moved around, so get things working again.
2017-03-19 09:03:30 +01:00
nanoplink
75e25605e2 Added .gitignore from svn:ignore properties 2017-02-25 00:38:57 +01:00
Adrien Destugues
76d4630b4c Patch by Thomas Bernard: improve detection of SDL and Lua for macOS.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2174 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2017-01-14 08:47:42 +00:00
Adrien Destugues
9c6f343215 Patch by Thomas Bernard to fix compilation on FreeBSD.
Thanks!

Fixes #50.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2173 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2017-01-03 18:25:35 +00:00
Adrien Destugues
0eaf3fce96 Use iconv to convert filenames from UTF-8.
Patch by miniupnp, with some C89 adjustments.
Enabled for Haiku and the generic Linux/*BSD part of the Makefile.
Please adjust as needed.

Fixes #10 for codepages for which we have a font.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2172 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-12-02 19:43:23 +00:00
Adrien Destugues
0ce386bb19 Add a way to query the layer count and spare layers functions.
Fixes #43


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2171 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-11-28 21:29:06 +00:00
Adrien Destugues
bb5da79264 CPC/SCR: allow 32K pictures.
Set R12 so that the picture can use the full video RAM, if it is large enough.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2170 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-11-28 20:24:53 +00:00
Adrien Destugues
5d51158231 Show total number of frames in animation bar.
Fixes #11.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2169 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-11-22 21:30:23 +00:00
Adrien Destugues
2fc6b9375c Fix loading some Atari ST IFF files
IFF is a versatile format, and can store data in Atari ST display RAM format.
This allows to load several of our IFF test files, but the result for most
seems corrupt (either that, or the files in our testsuite are ugly).

Thanks to miniupnp for the patch!

Fixes #38.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2168 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-11-22 20:42:15 +00:00
Adrien Destugues
40201c862d Add credit for the new 3x4 mode and some fileformats.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2167 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-10-15 19:10:01 +00:00
Adrien Destugues
8808625851 Add a "tall 3" drawing mode.
Pixels with 3:4 aspect ratio. Why not?

Contributed by Nic Soudée (zoner/xylem). Thanks!


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2166 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-10-15 18:57:14 +00:00
Adrien Destugues
d3a4ced94c PPH loader fixes
- Fix palette computation, flickering two colors give a mix lighter than 50%
- Fix off by one error in B1 palette change decoding.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2164 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-07-20 18:53:58 +00:00
Adrien Destugues
702f1835da Support loading PPH files (Amstrad CPC).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2162 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-07-19 20:28:43 +00:00
Adrien Destugues
0c7d17304a Fix remaining doxygen warnings.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2128 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-10-03 06:28:26 +00:00
Adrien Destugues
34ec1d967a Haiu: add missing / at end of data path.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2127 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-08-16 12:33:01 +00:00
Adrien Destugues
f2797f6648 Fix more things for Haiku port
* Add an icon in the native format
* Add "resource definition" to the executable (including icon and version info)
* Use the proper API to find the share directory.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2126 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-08-16 12:27:21 +00:00
Yves Rizoud
2f3c55477e Fileselectors : handle palette and image formats separately
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2125 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-07-05 01:10:31 +00:00
Adrien Destugues
7f4fcde6d7 Fix drawing glitch when selecting/deselecting transparent color.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2124 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-07-01 18:51:11 +00:00
Yves Rizoud
54b4269103 Effects screen : remove underlines on 'X' buttons (Underline is supposed to be used on letter whose key acticvates the button)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2123 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-06-28 15:44:12 +00:00
Yves Rizoud
f9eb1bfe7b Fix crash in contourfill when grid is visible - part of ticket #20. Also update credits and homepage address
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2122 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-06-25 22:26:49 +00:00
Yves Rizoud
0df4275ad1 Update help screen of Palette window, to take into account latest Sort option (changeset 2104), and many other things which weren't current anyway.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2121 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-06-24 23:03:24 +00:00
Yves Rizoud
6d75b08fbc Duplicate layer : Add keyboard shortcut, update help file for button
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2120 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-06-24 21:23:07 +00:00
Adrien Destugues
cc05157ae9 Fix install when datadir is not named "share".
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2119 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-04-29 20:32:54 +00:00
Adrien Destugues
d164d1d4cc Don't free the palette, it is owned by libpng.
Fixes #21.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2118 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-04-24 18:24:39 +00:00
Adrien Destugues
705584a9d7 Fix some doxygen warnings.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2117 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-04-04 09:08:11 +00:00
Adrien Destugues
11fa950ea7 Layer preview: add a 1px border around the previews.
Make it easier to tell the layers apart.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2116 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-07 09:33:34 +00:00
Adrien Destugues
e187ade14c Effects: forgot some changes when rearranging buttons
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2115 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-07 08:34:18 +00:00
Adrien Destugues
78b5ab394b Popup menu to switch between drawing modes more easily
Fixes https://code.google.com/p/grafx2/issues/detail?id=510


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2113 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-04 14:33:06 +00:00
Adrien Destugues
3332b43330 Save and load support for GIMP palettes (.GPL files)
* Implemented by 00ai99
* Fixes https://code.google.com/p/grafx2/issues/detail?id=518


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2112 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-04 13:45:01 +00:00
Adrien Destugues
32defb8897 fix "save as" not showing the current filename
* We attempted to set this but it was overwritten when enumerating the files.
* This makes it easier to save the file in the same dir, with another name.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2111 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-04 10:12:18 +00:00
Adrien Destugues
fa80a10093 Implement "save palette" button
* Actually a shortcut to "save picture" with preset PAL format and different window title.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2110 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-04 10:08:34 +00:00
Adrien Destugues
d9f2cd2d40 Remove no-op function Palette_loaded.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2109 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-04 09:28:23 +00:00
Adrien Destugues
26458456a8 Move the "show grid" setting to the effects window.
Fixes https://code.google.com/p/grafx2/issues/detail?id=315


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2108 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-03 16:07:39 +00:00
Adrien Destugues
0f64436854 Effects: group them by type
* On the left: "feedback" effects, with the checkbox to enable feedback.
* On the right: "grid" effects, which use the grid settings.
* On the middle: everything else.

"Grid" effect is renamed to "Snap".


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2107 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-03 15:55:57 +00:00
Adrien Destugues
e517902a4b Rework palette screen to be better usable
* RGB sliders are twice as high as before (128 pixels)
* Preview area is larger
* Add save/load buttons (not implemented yet)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2106 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-03 14:11:11 +00:00
Adrien Destugues
810c457483 Change look of window title bars.
* Now they have a white background.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2105 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-03 14:09:12 +00:00
Adrien Destugues
5a8faa6d42 Implement "sort by histogram" in palette.
* Most used colors are moved to the start of the palette
* Stable sorting is used, so unused colors at the end of the palette are not moved at all


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2104 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-03 08:57:34 +00:00
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
f0ebf223a8 Doxyfile: enable QUIET
* Too much messages hides the useful warnings.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2101 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-02 10:28:00 +00:00
Adrien Destugues
85e91c223f Change generation directory for Doxygen.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2100 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-02 10:03:25 +00:00
Adrien Destugues
c6b9eba7eb Right click on the "add layer" button creates a new layer with a copy of the current layer contents
Suggested by ilkke.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2092 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 21:42:16 +00:00
Adrien Destugues
9d00b93a5f Improve menu palette looks
* Only show the "transparent" marker in layer mode when there is more than one layer
* Use a single pixel separation between colors (bypass menu_factor).


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2090 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 21:32:51 +00:00
Adrien Destugues
02a32b75bb Don't free() stack-allocated buffer.
Probably a leftover of use of a Linux extension of getcwd. Currently we use a
buffer on the stack and we must not free it.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2089 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 20:56:36 +00:00
Adrien Destugues
9c1c219348 Make the transparent color more visible with a light/dark grey highlight.
It is often confusing which color is transparent in the color palette. Mark it
with a small pattern to make it easier to see.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2088 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 19:34:48 +00:00
Adrien Destugues
6a225eb4ed Fix Haiku build.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2087 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 19:33:41 +00:00
Yves Rizoud
67d3636512 Fix Lua function matchcolor2() inaccuracies caused by integer arithmetics
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2082 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-15 22:20:47 +00:00
Adrien Destugues
61c8dca353 Add a port to the GCW Zero, contributed by David Knight.
Untested since I don't have the hardware.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2080 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-10 20:13:57 +00:00
Adrien Destugues
5e26436c48 Fix mismatched parameters.
Bug caught by the Debian team on GrafX2 2.3.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2072 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2014-05-16 10:15:07 +00:00