Yves Rizoud
3ede1f3a56
[layers] NOLAYERS option at compile time. Unfinished.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1140 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 23:22:43 +00:00
Yves Rizoud
f38fd068a2
[layers] Merged changes from trunk
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1131 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 01:05:21 +00:00
Adrien Destugues
1a2ac678e0
Splitted loadsave.c :
...
- loadsave.c : common things
- fileformats.c : format that make a full backup of any picture without palette loss
- miscfileformats.c : formats that are not saving all the picture (palette only, pixels only, constrained palette)
I was not very precise in the splitting and we may rethink the flags that mark if a picture is fully saved or not... it was not updated after we decided to allow the full palette range 0.255 instead of 0.63, so most of the atari format were marked as saving everything.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1120 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 15:20:44 +00:00
Adrien Destugues
4d20be0053
Fixed some more amiga vbcc warnings
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1093 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-27 10:28:32 +00:00
Yves Rizoud
3781dae7d3
[layers] Updated from trunk.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1087 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 22:44:45 +00:00
Yves Rizoud
2a8546eaef
trunk: Windows' .ICO icons can be read too. Removed jpeg.dll, not used.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1086 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 22:28:38 +00:00
Yves Rizoud
db130fc60d
trunk: Implemented file loading of JPEG, TGA, TIFF and a few others, by using SDL_Image builtin loader. Added visible 'hourglass' cursor during 24bit color reduction.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1085 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 22:12:56 +00:00
Yves Rizoud
22d5e7de70
[layers] Updated from trunk: 'All formats' filter in file selectors
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1084 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 09:57:38 +00:00
Yves Rizoud
9ef0e6b74c
(trunk) File save/load only shows common file extensions by default. (choice 'all' in filter, different from '*.*')
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1083 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-21 01:52:07 +00:00
Yves Rizoud
3037d1a84e
[layers] Fixed crash on png saving (thanks Roberto)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1078 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-18 19:14:34 +00:00
Yves Rizoud
89f2173d70
[layers] Implemented SwapUp and SwapDown (Alt-PgUp, Alt-PgDown) to change layers order; Implemented layer merge (Alt-End); improved GIF loader to read images with optimized layers (smaller) and the ones with a transparent color different than zero.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1077 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-18 19:06:07 +00:00
Yves Rizoud
2049f96c59
[layers] Implemented layer insertion. No keys or menu yet, but it's already used when loading images, to make an image with right number of layers. Undoing/redoing such change works. Implemented single-layer deletion (untested)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1069 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-08 23:54:02 +00:00
Yves Rizoud
dc70d2f59f
[layers] Merged-in the trunk changes (support for variable-height menu bar). Color replacer now works. Saving non-layer formats issues a warning and saves flattened version of the visible layers.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1068 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-08 21:41:25 +00:00
Yves Rizoud
0b07b43722
[layers] Merged r1063 from trunk. Separated the controls for layers from translucency keys. Can now control up to 8 layers
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1065 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-07 00:07:27 +00:00
Yves Rizoud
874ccd4430
[layers] Fix a bug with scroll. Implemented basic save/load of layers in GIF as non-looping animation.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1058 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-04 01:25:38 +00:00
Yves Rizoud
cedb706326
First svn commit of the experiment with layers. Preemptive backup (to shorten delay before drawing) is currently disabled. Basic Undo/Redo works, but not image resizing, the adjust tool, and saving (not even flattened)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1039 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-21 14:16:41 +00:00
Adrien Destugues
b12423d03b
Trying to compile on amiga with vbcc.
...
Removed some useless unixisms.
Still not working.
Hope I did not break too much things.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1035 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-19 22:41:51 +00:00
Yves Rizoud
2ce0a2538b
Merged in fix by Petter (issue 211 comment 26). Made the C64 save window remember its settings (while the program is open)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1021 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-06 18:59:20 +00:00
Yves Rizoud
c894caf2f8
Merged in Petter's save options for c64 pictures. (issue 211 comment 25)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1020 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 22:10:49 +00:00
Yves Rizoud
b934f1d57c
4-space tabs for c64 load/save code
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1018 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 20:52:43 +00:00
Yves Rizoud
b92e8f288e
Updated copyright line
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1017 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 19:53:15 +00:00
Yves Rizoud
2e46820b83
Fixed tabulations to 2spaces (the most common in this file). Tiny bit of error-check on saving. Implemented preview scaling to display c64 widepixel pictures properly. Not done yet: Auto-set wide or wide2 pixels after loading a picture with wide pixels.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1016 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 19:49:18 +00:00
Adrien Destugues
6c3963bf33
We're going to get it right...
...
Some vocabulary :
-We call "screen" the pixels that the user actually sees, including any menu, cursor, opened window. So the function count_used_colors_screen_area counts colors there.
-We call "picture" the pixels that make the full picture, as you want to save it. count_used_colors and count_used_colors_area counts color there.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1015 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 17:02:18 +00:00
Adrien Destugues
62ba2fd885
Added c64 picture samples
...
Put the correct version of loadsave.c. Sorry I'm a little ill today.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1014 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 16:22:35 +00:00
Adrien Destugues
cc47a21eca
Added support for loading and saving c64 fileformats. Please test it :)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1013 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 13:55:51 +00:00
Yves Rizoud
4e0d95b5e7
New: PNG 24bit loader (issue 201). Fixed greyscale PNG loader which never worked. Fixed 24-bit image loading on program startup which didnt update palette.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@984 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-09 16:54:39 +00:00
Adrien Destugues
07bfc119b8
-No need to check if a pointer is null before freeing it.
...
-However if the pointer is still living (for example a global) you should assign NULL to it to avoid bad ram access and random bugs. Accessing a NULL pointer always gives a segfault, accessing a freed pointer may or may not crash.
-Also fixed a memory leak
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@924 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-16 07:33:14 +00:00
Adrien Destugues
7bde7d90ce
Quick-made support for Neochrome files. Loading works, saving leaves parts of the header uninitialized. Neochrome may or may not like it.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@911 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-13 08:09:40 +00:00
Adrien Destugues
7a847be4ec
Removed all instances of Read_one_byte.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@798 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-12 17:41:22 +00:00
Adrien Destugues
402df48b7f
Removed some unused functions (kindly pointed out by the great ncc tool)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@796 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-10 14:47:09 +00:00
Adrien Destugues
2fa494f77e
Removed postal address of the FSF since it's moving faster thant the website :)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@779 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-05 18:19:37 +00:00
Yves Rizoud
1eeed5aca4
Added some missed translations in source code.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@755 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-21 17:48:26 +00:00
Yves Rizoud
6c0637f65e
New: Reading 32bit and 16bit bitmaps, with and without bitfields.
...
Fixed: Reading 8-bit compressed bitmaps.
New: Reading bitmaps with v4 header.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@723 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-05 19:21:07 +00:00
Adrien Destugues
be1da7b6a6
Fixed a buffer overrun in the skin reading... make saving the config work again...
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@719 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-04 18:41:04 +00:00
Yves Rizoud
5655129401
Makefile: Added missing png library to linker options (issue 141)
...
Fix the minimum screen size not enforced when resizing window (since r705)
Fix the mouse cursor position when changing pixel size (since r705)
In fileselector, the image preview now enforces "safe colors". (issue 116)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@716 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-04 13:38:45 +00:00
Yves Rizoud
eb781b9bd6
Renamed sources files to english words, updated makefile, recomputed dependencies.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@703 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-29 00:12:33 +00:00
Yves Rizoud
efbc978e6f
Source code translated to english
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@697 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-27 16:50:21 +00:00
Yves Rizoud
6b4a8f674e
Cleaned up the layout of Save/Load screen. (issue 92, issue 84#4)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@696 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-27 02:56:01 +00:00
Yves Rizoud
fa71dea18d
Code cleanup: Removed the code related to Save/Load window from buttons.c, transferred it to files.c. Files.h now only exposes this window's function.
...
Some code related to this window is still in loadsave.c (stuff for preview)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@695 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-26 19:41:33 +00:00
Yves Rizoud
2602c591eb
Fixed some missed translations. Fixed doxygen (mis)handling of packed structures.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@692 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-23 19:24:16 +00:00
Yves Rizoud
346d940889
All code ready for mass translation
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@691 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-23 18:08:42 +00:00
Yves Rizoud
f8c7c6730b
translations
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@690 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-23 02:33:21 +00:00
Adrien Destugues
c324adfff2
Some cleanups to the types of vars.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@689 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-22 17:44:29 +00:00
Yves Rizoud
f342ff5ff7
More translations (about 500)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@687 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-19 03:18:42 +00:00
Yves Rizoud
4dcdc53409
more translations
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@684 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-18 00:16:29 +00:00
Yves Rizoud
f69cf6b8f7
More manual translations, to make the bulk process easier
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@683 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-17 19:09:43 +00:00
Franck Charlet
c60c1e7353
- Modified Initialisation_du_programme() so 0 is returned on SDL initialization fail.
...
- Added support for .png files in Mac OS X port.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@677 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-16 17:19:40 +00:00
Yves Rizoud
ecafeaace1
more code cleanup to prepare translation
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@676 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-15 17:21:16 +00:00
Yves Rizoud
0aa43794cd
Code cleanup: typedef all structs.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@671 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-14 01:08:39 +00:00
Yves Rizoud
b347f5e04b
Source cleanup to help translation.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@669 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-13 21:42:26 +00:00