1851 Commits

Author SHA1 Message Date
Adrien Destugues
0b6e782f74 Support Amstrad CPC mode EGX2 2017-06-23 22:20:08 +02:00
Adrien Destugues
309538c190 Helpfile: some cleanup and updates to credits
- New file formats
- Remove postal addresses (who is going to use these, anyway?)
- Fix yet another reference to the google code website
2017-05-30 21:39:42 +02:00
Adrien Destugues
f80bb320bc Use ~/.config/grafx2 when the XDG_CONFIG_HOME is not set
Follow the freedesktop spec.

Thanks to skrzyp for noting this important detail.
2017-05-08 09:43:47 +02:00
Adrien Destugues
a321c4c785 Fix building with MinGW from Linux 2017-05-08 09:33:01 +02:00
Adrien Destugues
317dc5c667 Move settins to XDG_CONFIG_HOME 2017-05-08 09:32:25 +02:00
Adrien Destugues
aef77744e1 EGX mode for CPC
In this custom mode, odd lines use MODE 0 (wide pixels, 16 colors), and
even lines use MODE 1 (square pixels, 4 colors).

- Add a settings window to the 8-bit effect where you can chose what you
want to draw
- Add the customizations required to make it work in graph.c
- Tweak some other places so it is easier to add other modes later on.
- Groundwork for some more modes: EGX2, ZX spectrum, Game Boy color.
2017-05-06 22:22:52 +02:00
Adrien Destugues
f04691145b Use Gitlab CI to generate Linux images.
Automatically checks that the code builds fine on Linux
Export the zip with the binaries
2017-05-06 16:03:42 +02:00
Adrien Destugues
5b6095f0bc Fix all warnings and enable -Werror
mostly unused variables and broken indentation.
2017-05-06 15:13:50 +02:00
Adrien Destugues
c0e625fdef Fix the Linux build. 2017-05-06 14:57:25 +02:00
Adrien Destugues
a8c7cdff15 Update copyright year in headers. 2017-05-01 20:41:46 +02:00
Adrien Destugues
23eded3e09 Fix endless event loop in Haiku
SDL for Haiku always send a WM size change at init. We did catch that it
would not cause any SDL mode set, so we ignored it, but we forgot to
reset the resize width and height. So each run of the event loop would
try to resize the window again and again to the same size.

Thanks to event throttling this was not very noticeable, the main
consequence was that some stuff was reset and for example the tooltips
in the status bar were not showing at all.
2017-05-01 20:34:05 +02:00
Adrien Destugues
7be396a9cf Splash screen: fix homepage and copyright
* 10 years since I started porting GrafX2 to SDL!
* 20 years since Sunset Design wrote the first lines of code!
* To celebrate this, I'm finally setting up a real website!
2017-05-01 13:57:51 +02:00
Adrien Destugues
cf56a34992 Update some things after the switch to git.
- Do not use svnversion to find the version, instead use a revision
  count from git. As a result, the version number jumps back, however,
  so we should have a 2.5 release soon!
- Fix some URLs pointing to either the svn repo,
  or even to google code (!).
2017-03-23 07:29:26 +01:00
Adrien Destugues
903701727d Tweak gitignore a little
- Mainly because it didn't ignore the generated executable.
2017-03-21 21:57:50 +01:00
Adrien Destugues
092e092c18 Finish tweaking layout of palette settings window. 2017-03-21 21:55:55 +01:00
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