636 Commits

Author SHA1 Message Date
Adrien Destugues
7a847be4ec Removed all instances of Read_one_byte.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@798 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-12 17:41:22 +00:00
Yves Rizoud
8f9dd6a68e Frame around BGcolor in menu palette: Now handles the case where the same color is FG and BG color
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@797 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-10 17:18:12 +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
Adrien Destugues
fc1786a077 Frame the backcolor with a dark dotted line.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@795 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-10 14:17:13 +00:00
Adrien Destugues
23a72b39ee Build fixes for AROS.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@794 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-10 07:26:09 +00:00
Adrien Destugues
4a051bb820 Clicking on the current forecolor in palette will open the palette window.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@793 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-08 20:52:48 +00:00
Yves Rizoud
29bfd973d3 Changed window caption
Fix: Made the "Safe resolution" shortcut do nothing in windowed mode. (issue 118)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@792 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-08 19:00:41 +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
5d61f3aed5 Fixed the command-line argument '/triple', it was setting double pixels, not triple pixels.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@788 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-07 21:22:51 +00:00
Yves Rizoud
7b5481e9c9 Source archives will now contain misc/grafx2.1 (source of man page), misc/grafx2.xpm (icon for all Linux) misc/grafx2.desktop (Gnome desktop entry)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@787 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-07 19:01:44 +00:00
Adrien Destugues
88edf2d657 Added manpage.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@786 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-07 08:57:38 +00:00
Adrien Destugues
570e1b8865 Compilation sandbox fix.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@785 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-07 08:44:59 +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
344547a0ca Fix: Reverted part of r773 (Crash on distort if the brush angles touch the screen edge.)
Fix: Distort brush now re-centers the brush "handle".


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@783 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-06 19:20:06 +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
f01c210211 Fixed make uninstall for the .xpm and menu file.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@778 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-05 16:54:56 +00:00
Adrien Destugues
8eaf299c08 Added files from debian distro.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@777 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-05 11:41:27 +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
3035788398 Fixed some splint warnings. Basically, ensure vars are positive when you use >> and << for divide and multiply by 2 :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@773 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-04 19:43:21 +00:00
Adrien Destugues
e5fc3a9ef3 AmigaOS 68k build fixes by Artur Jarosik. Thanks!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@770 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-03 17:45:10 +00:00
Adrien Destugues
6f37000cd5 Preview in text window is now drawn with the back color, so you can see the antialiasing correctly.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@769 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-03 14:09:12 +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
Adrien Destugues
780bf3a751 -Fixes issue 152 (color picker cursor)
-Switches FreeBSD to cumulated update method, they shouldn't need macosX tricks for that they are using X11 :)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@767 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-03 13:02:25 +00:00
Yves Rizoud
a216785b59 Add help for "Picture transform" menu
Fix help for Y-flip
GUI skins: Add some characters in help fonts.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@766 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-02 19:04:34 +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
358b0ea076 Fix compilation error (gcc 4.3.3 doesn't seem to like inline, or maybe it should be static inline)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@764 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-02 17:57:40 +00:00
Yves Rizoud
e5f948076b New: Picture effects screen, resizes / mirrors / rotates image (Issue 73)
New: Distort brush (Issue 34)
New: Pixel scaler "Triple" for 3x3 zoom (Issue 147)
New: Pixel scaler "Quadruple" for 4x4 zoom (Issue 151)
New: Pixel scaler "Wide2" for 4x2 zoom (Issue 148)
New: Pixel scaler "Tall2" for 2x4 zoom (Issue 149)
Fix of very old bug: Resizing the image didn't mark the image 'modified since last save'

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@763 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-02 16:44:06 +00:00
Yves Rizoud
c1a1d88592 Fixed "empy" / "empty" typo in some functions declarations in graph.h to match their fix of r761. (gcc 3.8 was now warning of the lack of advance declarations).
Compiles to same executable as r761, no need to re-package the latest OSX version.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@762 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-30 19:24:28 +00:00
Franck Charlet
c4ca933dfe - Fixed a bug in the credits (and cleaned'em up a bit).
- Fixed a bug in the draw gradient ellipse that caused the cursor to remain on screen after the drawing operation.
- Fixed "empy" / "empty" typo in some functions names.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@761 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-30 13:28:25 +00:00
Adrien Destugues
33b28c76df Sorry hhickr :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@760 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-29 19:14:35 +00:00
Adrien Destugues
506ea20d36 Sparc CPU does not like accessing non-aligned things. Depack some structures so the program don't crash. We should probably fix every struct, but I'm too lazy to check all of them right now (could corrupt saving and/or loading).
Added Gürkan Sengün to the bugfinders as he found the problem. Thanks !


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@759 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-29 17:28:44 +00:00
Yves Rizoud
1eeed5aca4 Added some missed translations in source code.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@755 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-21 17:48:26 +00:00
Adrien Destugues
284eda4ffe Build fix for BeOS/Haiku gcc2
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@754 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-20 19:18:26 +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
Yves Rizoud
563b935615 Doxygen documentation for struct.h
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@751 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-18 15:04:31 +00:00
Yves Rizoud
0495eed913 Doxygen documentation of global.h and const.h (in English)
Some small changes in code that don't change the generated executable:
- 4 constants that were #defined are now enums, so they automatically get the right value: NB_ICON_SPRITES, NB_BUTTONS, NB_SPECIAL_SHORTCUTS, NB_OPERATIONS.
- Some numeric constants replaced by their symbolic value.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@750 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-16 19:32:15 +00:00
Adrien Destugues
70a3b22afb Fixes issue 144 : $(DESTDIR) aware build system.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@749 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-14 18:37:28 +00:00
Franck Charlet
7dae508324 - Renamed the "Button" array into "Buttons_Pool" due to a conflict with Apple headers.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@748 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-14 12:19:34 +00:00
Adrien Destugues
6823855cbb small makefile fixes for gp2x.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@745 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-13 10:05:20 +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
c98bfafb76 Fixes r727 not compiling on windows,
Fixes an old issue on Linux where the program couldn't be run from a symbolic to the executable.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@743 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-07 21:53:20 +00:00
Adrien Destugues
19ac89a38f New (hopefully better) method for selecting the colors in smooth and colorize. Tell me if you think it's good.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@742 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-07 17:54:52 +00:00
Adrien Destugues
d1de5fa366 Dropped all the old files. They are not really usefull anymore as everything was rewritten in clean C for us...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@741 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-07 17:23:01 +00:00