2080 Commits

Author SHA1 Message Date
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
ba42b3cb17 In fullscreen mode, auto-activate wide/tall pixels when you load a C64 multicolor picture, or a PNG picture you saved with wide/tall pixels.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1019 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 21:20:43 +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
Adrien Destugues
04cbf954ca Fixed a display bug with small picture in zoom mode and grad rect.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1012 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 13:41:23 +00:00
Adrien Destugues
dcbbd07f8a Fixes issue 212 (segfault in gradrect). The operation is now cancelled if the rectangle is fully out of the picture.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1011 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 12:55:09 +00:00
Yves Rizoud
d6bf9413bf Displayable tile grid (Issue 171)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1007 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-26 23:42:55 +00:00
Yves Rizoud
7bfdb28936 Keyboard shortcuts that open a window now also close it (Issue 88). Fixed a recent bug that made contextual help in FX window only work once.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1004 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-23 00:41:40 +00:00
Yves Rizoud
8ac66726f2 Brush container integrated as the bottom row of Paintbrush screen (F4)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1003 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-22 22:11:01 +00:00
Yves Rizoud
5c4219d3fa Improved built-in resizable brushes: circle brushes are no longer limited to even diameters (2 4 6), and random brush now only has isolated pixels (no pixels touch each other).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1002 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-22 18:39:14 +00:00
Yves Rizoud
1ccdf24dfa Brush container (Issue 135) now working with color brushes too.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1001 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-20 23:13:41 +00:00
Yves Rizoud
29ee887c78 Brush container (unfinished). Temporarily bound to right-click 'Brush FX'. Only accepts monochrome brushes of any size at the moment.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@997 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-18 23:42:07 +00:00
Adrien Destugues
c957107d85 Fixed the same stupid bug about endless looping on palette reduction again.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@996 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-17 19:48:20 +00:00
Yves Rizoud
025d27ff71 (cont'd from previous commit) Fixed Issue 183. Added intermediate screen updates during expensive operations (including rectangle, I forgot it in previous commit). Display more responsive to users of fast mice.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@991 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-15 16:56:20 +00:00
Yves Rizoud
562099f17f Improved mouse experiment: Mouse merging is automatically off when drawing and on when not drawing.(ignores ini setting). Tools that paste the brush along a shape (lines, cont'freehand, circles, splines) now force a screen update about 10 times per second, but no more than once every 8 pixels drawn. See issue 183.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@990 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-15 01:15:39 +00:00
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
d5b5ba6de3 Fixed stupid bug and some comments in 24bit color reduction.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@986 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-09 18:33:18 +00:00
Yves Rizoud
d01f573e57 Added a picture which we can't load (gui.bmp, 24bit bmp)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@985 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-09 18:24:03 +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
Yves Rizoud
8b340684bd Various internal changes, preparing for layers (mostly backup system)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@983 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-08 18:53:30 +00:00
Adrien Destugues
f43502f7be typo.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@981 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-05 20:36:34 +00:00
Adrien Destugues
8190d7c83a Moved the french html docs from trunk to the new french section of the wiki.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/release@976 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-05 19:33:51 +00:00
Adrien Destugues
c199ad22eb Moved the french html docs from trunk to the new french section of the wiki.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@976 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-05 19:33:51 +00:00
Adrien Destugues
4bf44d6d9e Some changes to the helpfile
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@975 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-05 18:23:25 +00:00
Adrien Destugues
6e1355c7ae Display "Palette editor / setup" in the toolbar for the palette button instead of just "Palette editor" as some people seem to miss this dialog :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@973 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-05 11:59:51 +00:00
Yves Rizoud
01909c180b Fixed typo in Zoom shortcuts description
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@972 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-04 19:02:49 +00:00
Adrien Destugues
951096eb86 Patch by Magnus Bergman to allow setting zoom level with keyboard shortcuts.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@971 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-03 17:38:59 +00:00
Adrien Destugues
7a8cea5af6 Remember the HSL/RGB setting in the palette screen when you close it.
The variable was global but reset when opening the dialog.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@970 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-01 15:11:07 +00:00
Franck Charlet
48d04c2568 Updated XCode Project
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@969 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-31 10:20:35 +00:00
Yves Rizoud
7f072fd89c Merged in trunk the fix for issue 198
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@968 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-29 22:03:37 +00:00
Adrien Destugues
cb147ca759 Added Hatch to the bugfinders list. Thanks for your testing!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@967 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-29 21:44:54 +00:00
Yves Rizoud
ce9762b789 Fix issue 198: Crash in Load/Save dialog when directory content has changed.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/release@963 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-29 19:47:24 +00:00
Adrien Destugues
2bc428859b -Removed pic-samples folder in 2.0 branch.
-Added some Arati ST IFF picture we can't load.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@962 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-28 18:10:12 +00:00
Adrien Destugues
3abd490887 -Removed pic-samples folder in 2.0 branch.
-Added some Arati ST IFF picture we can't load.


git-svn-id: svn://pulkomandy.tk/GrafX2/branches/release@962 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-28 18:10:12 +00:00
Adrien Destugues
a8af26f12c Fixes mose drops when entering textfields introduced by the click-to-exit.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@953 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-24 17:10:08 +00:00
Adrien Destugues
bd9541cc04 Allows exiting a textfield with a mouse click (but not using space). Introduce a new global var to do it, however...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@952 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-24 15:22:18 +00:00
Adrien Destugues
d47e40b7cb Fix crashing bug when using pipette on a software-zoomed video mode from the palette menu. Fixes issue 196. Warning! Version 2.0 needs a new build!
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/release@951 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-24 08:34:20 +00:00
Adrien Destugues
cdd8a3276c Fix crashing bug when using pipette on a software-zoomed video mode from the palette menu. Fixes issue 196. Warning! Version 2.0 needs a new build!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@951 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-24 08:34:20 +00:00
Adrien Destugues
6698b78474 Removed useless debug print.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@950 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-24 08:13:31 +00:00
Adrien Destugues
5a59dc4abb Allow to use a negative number as menu ratio. This will set it as the max allowed zoom for the GUI display. Fixes issue 101
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@949 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-22 15:48:23 +00:00
Yves Rizoud
ff402b204b Code cleanup in pages.c. No functional change
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@948 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-21 22:13:05 +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
3a7edb8323 Some files are still using msdos encoding, which is bad :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@926 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-16 08:49:56 +00:00
Adrien Destugues
b5e806eda3 -Style fixes (check for (i != 0) instead of just i for int
-Error on some extreme cases (can't even allocate 1 byte) (the exit here are to make splint happy)
-Header protection with #ifdef


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@925 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-16 08:49:27 +00:00