964 Commits

Author SHA1 Message Date
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
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
Yves Rizoud
260347ac21 Updated credits
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@909 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-09 01:08:02 +00:00
Yves Rizoud
c425d3e20d OSX: Config files now in a subdirectory of ~/Library/Preferences. This will keep your settings when you install new versions. Patch by MagerValp, issue 192
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@907 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-08 00:27:05 +00:00
Yves Rizoud
ec1642ff79 Merged in the fix from r880: Issue 182, Out of memory errors, on machines with more than 4Gb RAM
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@906 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-07 19:58:24 +00:00
Yves Rizoud
72e6452d5b Integrated Makefile changes from MagerValp (Issue 188 comment 4) for MacOSX; adapted Windows build slightly; Updated Help screens for list of bug finders.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@904 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-07 19:26:37 +00:00
Adrien Destugues
cadb762640 Fixed issue 190: buffer overflow in splash screen.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@903 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-07 14:03:21 +00:00
Adrien Destugues
15a8c67db7 Patch by MagerValp to allow building on mac with make. Thanks !
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@902 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-07 13:58:37 +00:00
Pete Gordon
243b645383 Fixes to make it build on OS4 and the latest SDK
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@898 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-03 11:49:09 +00:00
Yves Rizoud
392d17c56c Fixed the clamping of Grad rectangle (I hadn't tested at all :-/ )
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@897 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-02 22:12:24 +00:00