Yves Rizoud
e423b5fb92
Fix issue 323: X-Invert didn't remap (it worked fine in 2.1). In Palette screen, fix Color reduce that only checked for used colors in visible image (instead of all layers)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1368 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-01 22:49:55 +00:00
Yves Rizoud
4ddcd01730
Palette operations that displace colors (sort, x-swap, x-inv, maybe others) now move around the transparent color index accordingly. The idea is that these changes don't modify 'What you see' of the image, and if the transp color was unchanged, it would be a huge visual change.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1281 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-25 19:15:25 +00:00
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
Adrien Destugues
98a9eb44c4
Fix X-Swap not remapping the layers properly.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1271 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 20:36:17 +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
Adrien Destugues
247b228141
fixed issue #261
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1229 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-29 21:43:31 +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
ad4b417afb
[layers] Merged changes from trunk (up-to-date now)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1132 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 01:18:29 +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
Yves Rizoud
373e39abe8
Fix a mouse cursor that appeared on palette screen when opening palette
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1130 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 00:17:48 +00:00
Yves Rizoud
036d8008cb
(internal) Skins have their own GUI color indices : avoids sharing/restoring MC_ colors
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1121 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 15:46:07 +00:00
Adrien Destugues
b0aa1dcbab
Added Ok and Cancel buttons in value requester. Don't do anything in palette screen if user enters strange value, not even a reduction to 256 as this drops unused colors.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1100 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 22:05:14 +00:00
Adrien Destugues
42ac69177f
Added a color counter to the palette screen. It needs the setting to autocount colors to be enabled and probably display garbage when it's disabled. Is this setting really useful ? Do someone dsable it ?
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1091 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-24 14:06:12 +00:00
Adrien Destugues
111fbbcf33
-Introduce new Requester_window to ask the user to enter a single value
...
-Reduce colors in the palette screen is now a dropdown for easy access to usual values. "Other" option opens a requester to enter a custom one if needed
-Some cleanup to make things a little more readable
-Build fixes after versionning system revert
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1090 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-24 13:42:59 +00:00
Yves Rizoud
2fd88b81bb
[layers] work on layer sharing (still stable)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1045 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-28 21:01:29 +00:00
Yves Rizoud
2345a764d6
Fix severe old bug where RGB scale couldn't be set back to 256. Update NSIS script (win32 installer)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1026 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-11 22:40:47 +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
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
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
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
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
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
Yves Rizoud
61f03d0921
Fix the Palette sort: since r776 it sorted on Lighness only, no matter the mouse button.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@790 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-07 23:55:12 +00:00
Yves Rizoud
27506d0649
Removed tab characters
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@789 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-07 23:43:00 +00:00
Yves Rizoud
df93843c18
Really fixed the Secondary palette issue, where clicking the RGB slider prints the new setting over mouse cursor. (Mentioned in r782 but I missed the piece of code)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@784 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-06 21:13:46 +00:00
Yves Rizoud
3e0b1b5c1c
Fix in Palette screen the refresh of enabled/disabled "+" and "-" buttons.
...
Fix in Secondary palette screen the initial refresh when the window opens.
Changed in Secondary palette the button "/2" into "÷2" (like in Spray menu)
Fix in Secondary palette: Clicking the RGB scale slider could display the new value over the mouse cursor.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@782 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-06 18:54:26 +00:00
Adrien Destugues
3babffb7e4
Whoops. Update the right area of the window, of course :)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@781 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-06 13:07:17 +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
Adrien Destugues
38657c54b8
Sort color by lightness if you use right click on the sort button.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@776 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-04 21:01:15 +00:00
Adrien Destugues
69393e2513
Added buttons x2 and /2 to select usual color scales easily. Also allows "2" as RGB scale. Just because we can :) (the menu color selector seems to have trouble with that, however)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@775 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-04 20:51:33 +00:00
Adrien Destugues
7909ce7304
Made RGB scaler a bit larger in palette secondary screen.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@774 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-04 20:24:13 +00:00
Adrien Destugues
4e387fdbfc
-Translation typo: need_to_remp > need_to_remap
...
-Allow sorting only a range of colors in the palette
-Reverted Lightness sorting order so white is first. This is what's used in the default palette.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@768 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-03 13:59:40 +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
Yves Rizoud
c09f5819c2
Doxygen documentation for text.h, SFont.h, setup.h, realpath.h, readline.h, palette.h, keyboard.h, io.h, input.h, hotkeys.h, helpfile.h, errors.h; and a basic description for all other headers.
...
Removed 2 unused function prototypes (They escaped translation)
In each C file, added a #include of its own header, to help doxygen generate a more complete documentation for the C files (and also double-check function prototypes)
All these changes don't change the generated executable, it's still beta 99.0.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@752 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-18 19:58:19 +00:00
Adrien Destugues
603ed38297
Fixed a potentially dangerous bug : the palette setup screen was reading things in an area just released when closing the window ! Makes the palette sliders work correctly for me.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@744 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-08 07:55:52 +00:00
Yves Rizoud
cf16b72ae0
Palette sorting now automatically remaps the image, so its final appearance doesn't change.(issue 87)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@722 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-05 00:50:27 +00:00
Yves Rizoud
5655129401
Makefile: Added missing png library to linker options (issue 141)
...
Fix the minimum screen size not enforced when resizing window (since r705)
Fix the mouse cursor position when changing pixel size (since r705)
In fileselector, the image preview now enforces "safe colors". (issue 116)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@716 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-04 13:38:45 +00:00
Yves Rizoud
0a3984c18a
Typo in palette screen title (Another victim of mass translation)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@708 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-30 23:57:52 +00:00
Yves Rizoud
8ff9028eab
Implemented palette ordering (issue 112). You can activate it in the secondary palette window (shift-P), it's saved in gfx2.ini.
...
The skin file has 2 more icons for the arrows (Ilija, grafx2 won't load if you don't update yours)
Updated contextual help for the secondary palette window.
Fixed some typos in code.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@704 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-29 21:58:38 +00:00
Yves Rizoud
eb781b9bd6
Renamed sources files to english words, updated makefile, recomputed dependencies.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@703 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-29 00:12:33 +00:00
Yves Rizoud
efbc978e6f
Source code translated to english
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@697 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-27 16:50:21 +00:00
Yves Rizoud
346d940889
All code ready for mass translation
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@691 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-23 18:08:42 +00:00
Yves Rizoud
f8c7c6730b
translations
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@690 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-23 02:33:21 +00:00
Yves Rizoud
f342ff5ff7
More translations (about 500)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@687 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-19 03:18:42 +00:00
Yves Rizoud
4dcdc53409
more translations
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@684 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-18 00:16:29 +00:00
Yves Rizoud
f69cf6b8f7
More manual translations, to make the bulk process easier
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@683 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-17 19:09:43 +00:00
Yves Rizoud
0aa43794cd
Code cleanup: typedef all structs.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@671 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-14 01:08:39 +00:00
Yves Rizoud
761d62f761
Removed some unneeded dependencies to speed up compile.
...
Code "cleanup": Functions that create a button now return its address.
This helps reduce the number of files that use the globals "Fenetre_Liste_boutons_*"
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@642 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-19 02:10:40 +00:00