Adrien Destugues
b36dee613e
Ensure pointers are put back to NULL when freed.
...
--Cette ligne, et les suivantes ci-dessous, seront ignorées--
M trunk/palette.c
M trunk/init.c
M trunk/engine.c
M trunk/filesel.c
M trunk/miscfileformats.c
M trunk/pages.c
M trunk/brush_ops.c
M trunk/op_c.c
M trunk/operatio.c
M trunk/brush.c
M trunk/loadsave.c
M trunk/graph.c
M trunk/fileformats.c
M trunk/main.c
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1277 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-18 14:26:59 +00:00
Yves Rizoud
6a69fa2b79
Hide button now brings a drop-down menu to choose toolbars to show/hide. Right-clicking it toggles them all off/on. Internal: Added support for dropdowns that expand above the button (available in toolbars and windows); Allowed toolbar buttons to wait for button release (the usual) or immediately trigger their effect.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1266 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 01:56:56 +00:00
Yves Rizoud
3538abadb9
Added support for hiding the main toolbar, keeping the status line and optionally layer bar. Made it the default behaviour of F10 / right-click 'hide', for testing and feedback. (IMO it's less unforgiving for new users, and we can provide alternative shortcut with old behaviour for veterans).
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1225 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-26 00:32:45 +00:00
Yves Rizoud
061bfccae6
Second fix for issue 252:Layer buttons redrawn over the tool bar when layer bar is hidden. An uninitialized variable wasn't detected and made the fix randomly successful.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1221 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-19 01:36:30 +00:00
Adrien Destugues
a055a9a51e
Fix buggy drawing in menu when using shortcuts.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1211 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-17 21:07:03 +00:00
Yves Rizoud
951600da1e
Fix crashing bug when you click a layer button, hold it, and release past the edges of the layer buttons. Fix a display bug when layer bar is hidden and you use the shortcut actions.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1202 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 22:34:27 +00:00
Yves Rizoud
883653480b
Working layer bar. Champagne!
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1193 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 19:24:04 +00:00
Yves Rizoud
f7a5b23541
Support for textured toolbars of variable length. Grafx2 repeats the last two columns, so the dither pattern of Modern skin works.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1191 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 16:43:59 +00:00
Adrien Destugues
17d3e62398
Added layer toolbar buttons
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1182 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 16:54:43 +00:00
Adrien Destugues
7d1f8cd8da
Fix a drawing bug when selecting/deselecting buttons in the menu.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1181 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 16:32:48 +00:00
Adrien Destugues
90595e3af6
"Hide" button now toggles the layerbar. Right-click works as before. Enjoy the layerbar !
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1179 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 14:11:24 +00:00
Yves Rizoud
c150be2664
[layers] merged in the recent changes from trunk
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1162 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-10 20:35:09 +00:00
Adrien Destugues
e6e698c2bd
Added vim modelines to all files.
...
Set them to 2-space indent, I hope this is ok.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1161 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-10 20:08:11 +00:00
Yves Rizoud
3ede1f3a56
[layers] NOLAYERS option at compile time. Unfinished.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1140 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 23:22:43 +00:00
Yves Rizoud
f38fd068a2
[layers] Merged changes from trunk
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1131 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 01:05:21 +00:00
Adrien Destugues
f9dc259af5
-Update Doxyfile for newer doxygen version
...
-Fix some problems with doxygen comments
-Regenerate doxygen documentation
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1111 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 09:36:35 +00:00
Adrien Destugues
1934425972
Added "Brush Factory", allowing you to run a lua script to generate (or alter, untested yet) a brush.
...
Added a simple (and ugly) sample script.
This needs updates to the makefile for platforms other than linux.
TODO: add a listbox to select the script you want to run. Do we have a simple API to handle filelists yet ?
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1094 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 15:22:45 +00:00
Yves Rizoud
89f2173d70
[layers] Implemented SwapUp and SwapDown (Alt-PgUp, Alt-PgDown) to change layers order; Implemented layer merge (Alt-End); improved GIF loader to read images with optimized layers (smaller) and the ones with a transparent color different than zero.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1077 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-18 19:06:07 +00:00
Yves Rizoud
abb6204757
[layers] Limited to 32 layers. (previously there was no limit and the 16-bit depth buffer wrapped). Fixed a display bug after picture transforms or layers add/del.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1075 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-14 00:13:49 +00:00
Yves Rizoud
7690cd9e50
[layers] Added functions to add and delete layers (Keyboard shortcuts alt-ins and alt-del) Now defaults back to 1 layer per image on startup.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1073 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-13 01:03:32 +00:00
Yves Rizoud
eb1878e413
[layers] Fix a merge error from last commit which disabled layer selection. Implemented Fill. Color replacer in progress (ie: it crashes).
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1067 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-08 00:58:45 +00:00
Yves Rizoud
6f8223b09b
trunk: Continued the handling of multiple effect on single shortcuts. Multiple window-open work (one after an other), and the restriction on shortcuts that are disabled while drawing is now applied correctly.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1063 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-06 23:24:00 +00:00
Yves Rizoud
5fd28bdd3b
trunk: Reserved hotkeys for layers. Allowed a single shortcut to launch several actions (Issue 88)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1062 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-06 22:42:43 +00:00
Yves Rizoud
cedb706326
First svn commit of the experiment with layers. Preemptive backup (to shorten delay before drawing) is currently disabled. Basic Undo/Redo works, but not image resizing, the adjust tool, and saving (not even flattened)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1039 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-21 14:16:41 +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
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
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
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
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
Yves Rizoud
d4dcba62a6
More work on fonts/skins
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@890 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-28 21:50:01 +00:00
Yves Rizoud
230baa77e7
GUI 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
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@883 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-22 21:30:54 +00:00
Yves Rizoud
5a01415960
GUI Generic list control: now takes cursors and mousewheel shortcuts. Still some mouse cursor problems, but almost done.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@882 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-22 17:35:52 +00:00
Yves Rizoud
0d54a9524f
More work on List controls. Used in GUI Skin selector now
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@879 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-18 19:43:40 +00:00
Yves Rizoud
7f3fd42f77
Started 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.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@878 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-17 23:49:56 +00:00
Yves Rizoud
1b2fa69f6a
GUi skin elements are allocated on the heap
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@871 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-16 19:43:37 +00:00
Adrien Destugues
62738a1526
Begin of work on the file selector.
...
Quite ugly, i tried to reuse code from the other fileselectors, but I failed.
Basically, it works, but we can improve it a lot.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@870 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-15 21:43:21 +00:00
Yves Rizoud
2189d00ec4
Merged buttons 'Grad rectangle' and 'Gradient menu' (issue 107)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@868 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-15 19:53:12 +00:00
Yves Rizoud
8478d29373
Quick shortcuts for numeric transparency levels (Issue 154) (defaults 1-9 and 0). Shortcut for all effects off (default shift-E)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@864 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-14 19:48:03 +00:00
Yves Rizoud
0826798943
Added HoraK-FDF to bugfinders in About screen,
...
Fix part of issue 169 (Resize while a window is open waits for an additional click or keypress after the window is closed.)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@822 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-26 19:31:01 +00:00
Adrien Destugues
ce812e481d
-Bring back the adaptive sleeping in the main engine. Still using static 20ms sleep in idle waiting loops (when mouse doesn't move)
...
-Discontinuous freehand now uses an asynchronous method for delaying. It is sensitive to the delay set in the airbrush/spray menu.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@802 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-12 22:16:05 +00:00
Adrien Destugues
ff83f12b31
Fixed all sdl_delays to wait for 20ms, not 1. Avoid problems for low-latency guys.
...
Also, made the splash screen stay as long as you don't click or key. Mouse moves are discarded. Sorry!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@800 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-12 19:05:33 +00:00
Adrien Destugues
3c0a940301
Removed Wait_VBL. Was only used for slowing down things. Used SDL_Delay(1) instead, which let the OS handle other things. We should get about 10-20ms latency with that. Scrollbars may be slightly faster. The only place where this could be a problem is discontinuous freehand. If the current way it works isn't good, look at the "Chrono" functions (like the spray) instead.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@799 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-12 18:00:19 +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
Yves Rizoud
9d19d8785a
New: Implemented the functions for previous and next user's colors. (Keys = and -) They use the Shade settings.
...
Minor display fix: In Shortcuts screen, explanation text can no longer overdraw the border.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@791 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-08 16:32:33 +00:00
Adrien Destugues
68fdd5175c
Grey out + and - buttons in palette screen.
...
Also, some doxygening in engine.c.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@780 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-06 12:15:27 +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
cfb323cdf0
(source code) Fixed mistranslation of Select_button / Unselect_button
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@765 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-02 18:27:05 +00:00