923 Commits

Author SHA1 Message Date
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
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
8b5681eccb -"fixed" warning about vars being used uninitialized (may happen if mouse cursor is totally offscreen or screen resolution is 0 pixel height, that is, never).
-Put some cursor drawing loops in the right order (loop on y, then on x) to make them a little more cache-friendly (and easier to read). I wrote them the wrong way, sorry!
-Some code formatting to 80 columns (not really important, don't worry about it)
-Added a sample neochrome picture to the pic-samples folder.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@923 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-16 07:04:39 +00:00
Yves Rizoud
9d0c73b5be Tweaked the line clamping algorithm (Issue 186): Multiples of 45° use orthogonal projection (again), ISO lines are now constrained to exact 2:1 lines and their length is projected on most significant axis, horizontal or vertical
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@922 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-15 20:11:07 +00:00
Yves Rizoud
7fc318a856 Experimental work on mouse locking with shift (issue 193). Consider unstable.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@921 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-15 18:50:25 +00:00
Yves Rizoud
c596b80b8d GUI: Made slider controls movable even if you bring mouse cursor far from them. Makes it much easier to maximize or minimize a value.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@920 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-14 20:43:51 +00:00
Yves Rizoud
3a5b460184 Finished the sticky buttons (didn't have any visible effect)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@919 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-13 21:36:53 +00:00
Yves Rizoud
77728125fb GUI: All controls are now 'sticky', ie. when you're dragging a slider/scroller and you move the mouse too far, it no longer activate other buttons. (Issue 191)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@918 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-13 19:10:48 +00:00