Adrien Destugues
6cdc5e3042
-Use nearest neighbour and no error diffusion when loading 24bit images
...
-Some cleanup to the palette computing function, but no real improvement. I can't get it to perform better ...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@987 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-09 20:26:10 +00:00
Adrien Destugues
97c8453dcd
Converted all files to unix end of lines.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@928 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-16 12:58:36 +00:00
Adrien Destugues
e877292ca2
The cluster system for color reduction when loading a truecolor image now uses a linked list instead of a table. This fix a potential problem because there was an overlapping memcpy. It also avoids copying the big cluster table around and just moves pointer around. It should be faster but I did not really noticed any change on my computer :(. Maybe it's too fast...
...
The same can probably be done for the gradient sets.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@927 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-16 12:57:11 +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
c09f5819c2
Doxygen documentation for text.h, SFont.h, setup.h, realpath.h, readline.h, palette.h, keyboard.h, io.h, input.h, hotkeys.h, helpfile.h, errors.h; and a basic description for all other headers.
...
Removed 2 unused function prototypes (They escaped translation)
In each C file, added a #include of its own header, to help doxygen generate a more complete documentation for the C files (and also double-check function prototypes)
All these changes don't change the generated executable, it's still beta 99.0.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@752 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-18 19:58:19 +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
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
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
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
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
Adrien Destugues
2c8fe249e6
Adds a listing of all the mountpoints under linux. I used a piece of code from gnulib, but i'm not sure it's a very good idea. It works for me and should be easy to adapt for many other platforms. This may need some tweaking to work also under beos and skyos (and possibly other unix-like), but if not done, the function will be compiled empty and will not harm anyone.
...
Also, cleans some warnings that occurs with -pedantic -c99 options to gcc, and some little things pointed by splint.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@458 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 15:26:59 +00:00
Adrien Destugues
de726cae2f
Some small optimisations to speed up the color reduction algorithm... still a little bit slow for me ...
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@373 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-08 20:28:38 +00:00
Yves Rizoud
14accb544b
Palette now uses RGB components in the full 0-255 range instead of 0-63.
...
All palette functions can be used in HSL color space too (multi-select, etc).
Fixed some more missing refreshes in Palette screen.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@368 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-03 01:03:32 +00:00
Adrien Destugues
a60b2bfd01
Some more work on HLS colors. Broken...
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@347 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-11-15 22:43:12 +00:00
Adrien Destugues
e31b88ceed
Palette sorting works
...
-still slow
-seems there is a bug in the HSL calculation for green and blue, they get sorted incorrectly
-maybe the new S parameter should be used in clustersets, because now we are not differenciating grey from red !! maybe it's done elsewhere, we'll have to check.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@291 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-20 18:14:10 +00:00
Adrien Destugues
fc41bbe89d
Implemented palette sorting. There are problems as we're sortig with HSL color system and the rgb2hl function doesn't return s... we'll have to add that as we can't say if we're looking at red or grey (both have H=0).
...
Also, there is a problem with the makefile under linux. The .dep is set for checking the .o in the win32 folder. It still works but recompiles everything at each change.
Also added a button to enable HSL color editing in the palette screen. We'll need a hls2rgb function, and some other tweaks and reworks to the palette screen.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@290 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-19 18:52:10 +00:00
Yves Rizoud
b488ec9272
Fixed stricter compilation warnings, deleted unused asm code
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@288 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-18 19:23:35 +00:00
Yves Rizoud
5fd1e42ea0
Copyright notices in source files
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@217 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-08 19:40:47 +00:00
Adrien Destugues
48cadad912
You can now move windows.
...
Warning, floyd steinberg dithering disabled for debugging purposes
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@116 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-08-10 17:19:14 +00:00
Adrien Destugues
dcb398c791
CFG file is also loaded with fread and saved with fwrite. Program runs :)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@69 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-29 10:19:22 +00:00
Adrien Destugues
306a004e36
First upload of the code.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-04-14 20:18:30 +00:00