dcbbd07f8aFixes issue 212 (segfault in gradrect). The operation is now cancelled if the rectangle is fully out of the picture.
Adrien Destugues
2009-09-05 12:55:09 +00:00
7bfdb28936Keyboard 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.
Yves Rizoud
2009-08-23 00:41:40 +00:00
8ac66726f2Brush container integrated as the bottom row of Paintbrush screen (F4)
Yves Rizoud
2009-08-22 22:11:01 +00:00
5c4219d3faImproved 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).
Yves Rizoud
2009-08-22 18:39:14 +00:00
1ccdf24dfaBrush container (Issue 135) now working with color brushes too.
Yves Rizoud
2009-08-20 23:13:41 +00:00
29ee887c78Brush container (unfinished). Temporarily bound to right-click 'Brush FX'. Only accepts monochrome brushes of any size at the moment.
Yves Rizoud
2009-08-18 23:42:07 +00:00
c957107d85Fixed the same stupid bug about endless looping on palette reduction again.
Adrien Destugues
2009-08-17 19:48:20 +00:00
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.
Yves Rizoud
2009-08-15 16:56:20 +00:00
562099f17fImproved 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.
Yves Rizoud
2009-08-15 01:15:39 +00:00
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 ...
Adrien Destugues
2009-08-09 20:26:10 +00:00
d5b5ba6de3Fixed stupid bug and some comments in 24bit color reduction.
Adrien Destugues
2009-08-09 18:33:18 +00:00
d01f573e57Added a picture which we can't load (gui.bmp, 24bit bmp)
Yves Rizoud
2009-08-09 18:24:03 +00:00
4e0d95b5e7New: PNG 24bit loader (issue 201). Fixed greyscale PNG loader which never worked. Fixed 24-bit image loading on program startup which didnt update palette.
Yves Rizoud
2009-08-09 16:54:39 +00:00
8190d7c83aMoved the french html docs from trunk to the new french section of the wiki.
Adrien Destugues
2009-08-05 19:33:51 +00:00
c199ad22ebMoved the french html docs from trunk to the new french section of the wiki.
Adrien Destugues
2009-08-05 19:33:51 +00:00
4bf44d6d9eSome changes to the helpfile
Adrien Destugues
2009-08-05 18:23:25 +00:00
6e1355c7aeDisplay "Palette editor / setup" in the toolbar for the palette button instead of just "Palette editor" as some people seem to miss this dialog :)
Adrien Destugues
2009-08-05 11:59:51 +00:00
951096eb86Patch by Magnus Bergman to allow setting zoom level with keyboard shortcuts.
Adrien Destugues
2009-08-03 17:38:59 +00:00
7a8cea5af6Remember the HSL/RGB setting in the palette screen when you close it. The variable was global but reset when opening the dialog.
Adrien Destugues
2009-08-01 15:11:07 +00:00
7f072fd89cMerged in trunk the fix for issue 198
Yves Rizoud
2009-07-29 22:03:37 +00:00
cb147ca759Added Hatch to the bugfinders list. Thanks for your testing!
Adrien Destugues
2009-07-29 21:44:54 +00:00
ce9762b789Fix issue 198: Crash in Load/Save dialog when directory content has changed.
Yves Rizoud
2009-07-29 19:47:24 +00:00
2bc428859b-Removed pic-samples folder in 2.0 branch. -Added some Arati ST IFF picture we can't load.
Adrien Destugues
2009-07-28 18:10:12 +00:00
3abd490887-Removed pic-samples folder in 2.0 branch. -Added some Arati ST IFF picture we can't load.
Adrien Destugues
2009-07-28 18:10:12 +00:00
a8af26f12cFixes mose drops when entering textfields introduced by the click-to-exit.
Adrien Destugues
2009-07-24 17:10:08 +00:00
bd9541cc04Allows exiting a textfield with a mouse click (but not using space). Introduce a new global var to do it, however...
Adrien Destugues
2009-07-24 15:22:18 +00:00
d47e40b7cbFix 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!
Adrien Destugues
2009-07-24 08:34:20 +00:00
cdd8a3276cFix 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!
Adrien Destugues
2009-07-24 08:34:20 +00:00
5a59dc4abbAllow to use a negative number as menu ratio. This will set it as the max allowed zoom for the GUI display. Fixes issue 101
Adrien Destugues
2009-07-22 15:48:23 +00:00
ff402b204bCode cleanup in pages.c. No functional change
Yves Rizoud
2009-07-21 22:13:05 +00:00
97c8453dcdConverted all files to unix end of lines.
Adrien Destugues
2009-07-16 12:58:36 +00:00
e877292ca2The 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.
Adrien Destugues
2009-07-16 12:57:11 +00:00
3a7edb8323Some files are still using msdos encoding, which is bad :)
Adrien Destugues
2009-07-16 08:49:56 +00:00
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
Adrien Destugues
2009-07-16 08:49:27 +00:00
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
Adrien Destugues
2009-07-16 07:33:14 +00:00
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.
Adrien Destugues
2009-07-16 07:04:39 +00:00
9d0c73b5beTweaked 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
Yves Rizoud
2009-07-15 20:11:07 +00:00
7fc318a856Experimental work on mouse locking with shift (issue 193). Consider unstable.
Yves Rizoud
2009-07-15 18:50:25 +00:00
c596b80b8dGUI: Made slider controls movable even if you bring mouse cursor far from them. Makes it much easier to maximize or minimize a value.
Yves Rizoud
2009-07-14 20:43:51 +00:00
3a5b460184Finished the sticky buttons (didn't have any visible effect)
Yves Rizoud
2009-07-13 21:36:53 +00:00
77728125fbGUI: 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)
Yves Rizoud
2009-07-13 19:10:48 +00:00
7bde7d90ceQuick-made support for Neochrome files. Loading works, saving leaves parts of the header uninitialized. Neochrome may or may not like it.
Adrien Destugues
2009-07-13 08:09:40 +00:00
c425d3e20dOSX: Config files now in a subdirectory of ~/Library/Preferences. This will keep your settings when you install new versions. Patch by MagerValp, issue 192
Yves Rizoud
2009-07-08 00:27:05 +00:00
ec1642ff79Merged in the fix from r880: Issue 182, Out of memory errors, on machines with more than 4Gb RAM
Yves Rizoud
2009-07-07 19:58:24 +00:00
72e6452d5bIntegrated Makefile changes from MagerValp (Issue 188 comment 4) for MacOSX; adapted Windows build slightly; Updated Help screens for list of bug finders.
Yves Rizoud
2009-07-07 19:26:37 +00:00
15a8c67db7Patch by MagerValp to allow building on mac with make. Thanks !
Adrien Destugues
2009-07-07 13:58:37 +00:00
243b645383Fixes to make it build on OS4 and the latest SDK
Pete Gordon
2009-07-03 11:49:09 +00:00
392d17c56cFixed the clamping of Grad rectangle (I hadn't tested at all :-/ )
Yves Rizoud
2009-07-02 22:12:24 +00:00
158cd7ff45Fixed an old (pre v2.0) control bug where releasing shift key had the extra effect of releasing the left mouse button.
Yves Rizoud
2009-07-02 22:09:57 +00:00
9e9fd506b6Continued the line clamping. Seems to work perfectly for all 16 directions, but I discovered an older problem in the input handler when you release a key that participates in cursor emulation. Not completely fixed.
Yves Rizoud
2009-07-02 21:38:11 +00:00
19a2892e88I extended the line clamping to do iso pixelart. However I only managed to find the equation for the 3 others. Maybe someone is better at geometry. I let the unequationed lines move free when you press shift. The limit between each spot can also be adjusted. Is someone better than me at math around here ?
Adrien Destugues
2009-07-01 19:21:58 +00:00
8b4533f105Skin graphics and font are now recorded & reloaded.
Yves Rizoud
2009-06-29 00:28:58 +00:00
d4dcba62a6More work on fonts/skins
Yves Rizoud
2009-06-28 21:50:01 +00:00
48c98b2234-Remove the spaces I just added when looking for the fonts, -No need to check if a pointer is NULL before freeing it, free() takes care of that, -Removed useless variables after Yves cleanup
Adrien Destugues
2009-06-28 19:36:06 +00:00
cc64de7e1f-Pad font names with spaces, as we need that to clear the dropdown button from previus selection -Made the font dropdown a little larger to hold 'fairlight' (quite a big group ;)) -Don't list fonts in the skin fileselector
Adrien Destugues
2009-06-28 19:27:20 +00:00
a619897862Don't free the GrafX2 logo when exiting the splash screen, it's now part of a struct and we free the struct at exit. This made the linux version crash. If you find it's memory waste, then make the logo a pointer instead of an array of bytes in the struct.
Adrien Destugues
2009-06-28 19:18:30 +00:00
67dbb218a2GUI skins and fileselectors: cleaned up a little
Yves Rizoud
2009-06-28 18:19:21 +00:00
ab9671b286Separated font graphics from skin graphics. WIP, a lot is still hard-coded (font list) or not coded at all (save/load in ini, and match in skin selection screen).
Yves Rizoud
2009-06-23 21:04:58 +00:00
230baa77e7GUI Listboxes: fixed mouse cursor display while using keyboard; Skin selector: tweaked position and made it ignore files that don't end in .PNG .GIF, or those that start with '_'; Added 2 old fonts and 2 new ones (thanks Ilkke) as files skins/_fontname.png
Yves Rizoud
2009-06-22 21:30:54 +00:00
5a01415960GUI Generic list control: now takes cursors and mousewheel shortcuts. Still some mouse cursor problems, but almost done.
Yves Rizoud
2009-06-22 17:35:52 +00:00
f683d9ff2eGUI skins: The loader now recovers cleanly from errors and displays a message that says what's the problem in the image.
Yves Rizoud
2009-06-21 18:34:57 +00:00
164b538725Fix 'Out of memory' message on machines with more than 4Gb free RAM (issue 182)
Yves Rizoud
2009-06-20 19:08:13 +00:00
0d54a9524fMore work on List controls. Used in GUI Skin selector now
Yves Rizoud
2009-06-18 19:43:40 +00:00
7f3fd42f77Started implementing generic 'List' controls. Currently in Text window, it's WIP, misses the initial display, no kb shortcuts, and untested with lists smaller than display area.
Yves Rizoud
2009-06-17 23:49:56 +00:00
51bcccce47Yay ! A 10 hours trip in the train is good for my opensource productivity :)
Adrien Destugues
2009-06-17 15:11:32 +00:00
1b2fa69f6aGUi skin elements are allocated on the heap
Yves Rizoud
2009-06-16 19:43:37 +00:00
62738a1526Begin of work on the file selector. Quite ugly, i tried to reuse code from the other fileselectors, but I failed.
Adrien Destugues
2009-06-15 21:43:21 +00:00
aff6fe50b2-Renomed skins. "base" becomes "classic", "ilkke" becomes "modern" (as I heard Ilkke is working on yet another skin...). -Converted them to png (base was a .gif but this is a bad format :)) -Changed dates in the splash screen to say coyright 2007-2009.
Adrien Destugues
2009-06-15 20:09:57 +00:00
04ff11c4d9Fixed typo in previous commit
Yves Rizoud
2009-06-15 18:46:23 +00:00
dad7e3d363Help for the quick translucency shortcuts. Fix a bug in Help where a hotkey highlight was on wrong position if an escaped character preceded it (The case never occured in 2.0)
Yves Rizoud
2009-06-15 18:41:36 +00:00
69dbed8d04Fix default shortcuts from previous commit (in code). Implemented user-definable mouse-click speed and double-keypress speed.
Yves Rizoud
2009-06-14 20:15:20 +00:00
8478d29373Quick shortcuts for numeric transparency levels (Issue 154) (defaults 1-9 and 0). Shortcut for all effects off (default shift-E)
Yves Rizoud
2009-06-14 19:48:03 +00:00
fb05f785bd(Dev) Makefile: File names from 'make ziprelease' are now grafx2-2.1wip862-win32.zip if label is '2.1wip', and grafx2-2.1.862-win32.zip if label is '2.1'
Yves Rizoud
2009-06-14 18:22:29 +00:00
7cb2519e2a(Dev) "trunk" is now labelled "2.1 wip". Makefile: "make ziprelease" now automatically names archives according to the version label from pversion.c
Yves Rizoud
2009-06-12 21:15:46 +00:00
daa38a37fbCreating a branch for maintenance of the latest release
Yves Rizoud
2009-06-12 18:48:28 +00:00
ad6a2442ecSource archives are now packed in a directory, which is the usual way to go on unix.
Adrien Destugues
2009-06-11 16:57:40 +00:00
8987f07c8aFix many bugs introduced by the gp2x "hack" of not having a windowed mode. Still not working perfectly, but at least i can manage to get the program in 320x240 by default on gp2x, without modifying the config files.
Adrien Destugues
2009-06-11 16:19:45 +00:00
92b5727994Proper way of detecting windowed modes to not display a ratio in the window list.
Adrien Destugues
2009-06-11 14:35:51 +00:00
783418fd57[gp2x] config must be written only in the local directory. You don't want to mess with the internal flash ram holding the firmware !
Adrien Destugues
2009-06-11 14:20:11 +00:00
75ec0abe5aRemoved two old macros that are now useless.
Adrien Destugues
2009-06-09 14:31:56 +00:00
4b3e8edfe8-Added codename "Summer Sunset" to the helpscreen -Centered the text on the helpscreen as there will be no logo for this release there -Updated the doxygen files for the official 2.0 release
Adrien Destugues
2009-06-09 14:22:26 +00:00
9ae2ead8ddFixed (GP2X): 320x240 is now the Default and 'Safe' videomode.
Yves Rizoud
2009-06-07 16:23:33 +00:00