540 Commits

Author SHA1 Message Date
Adrien Destugues
5883853be4 Doxygened clavier.h and brush.h
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@675 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-15 13:42:50 +00:00
Adrien Destugues
4d6561abed Finished doxygening boutons.h
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@674 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-14 20:39:02 +00:00
Adrien Destugues
6707834f07 Moves the doxygen files out of the main tree. Avoid fakeing ohloh reports.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@673 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-14 18:33:59 +00:00
Yves Rizoud
36302f2007 Working translation files for functions, structs, enums, globals, macros.
To translate a copy of the code, run:    perl translat.pl ../*.c ../*.h
Still need to translate struct members, variables, arguments : 1214 to go


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@672 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-14 01:33:01 +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
f30316612e Translation tools, and first set of translations (all function names)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@670 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-13 21:51:32 +00:00
Yves Rizoud
b347f5e04b Source cleanup to help translation.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@669 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-13 21:42:26 +00:00
Adrien Destugues
d2bd42887e Some doxygen documentation in boutons.h
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@668 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-07 21:50:59 +00:00
Adrien Destugues
3baa53db96 Fixes small BMP files saving
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@667 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-07 21:23:49 +00:00
Adrien Destugues
52f7d31b79 Sets the properties of html files so we can view them online.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@666 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-07 11:14:22 +00:00
Adrien Destugues
5f50f7bc22 Added doxygen documentation. Now we have to update the comments in all the files. See aide.h and button.h for some examples. Documentation is regenerated by "doxygen Doxyfile" in the root directory
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@665 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-03-06 21:05:05 +00:00
Adrien Destugues
b5a1fadbe0 Makefile cleanup suggested by Magnus Bergman. Thanks !
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@663 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-28 10:18:26 +00:00
Yves Rizoud
e9bc7f35c4 Bookmarks: '...' now disappears when Renaming, Clear asks for confirmation, empty bookmarks display the dropdown on both mouse buttons and their only itemis "Set".
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@662 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-27 23:40:56 +00:00
Yves Rizoud
2688bbb3b4 Polyform: Fix issue 129 (unusable when effects are active)
Tidied up the splash screen (can no longer drag it)
Save/Load: Fixed the quick-typing that wasn't reset when changing directories.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@661 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-26 19:41:48 +00:00
Adrien Destugues
aac6b480c5 No need to check the address of Libelle_valeur as it is a static var.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@660 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-26 17:12:08 +00:00
Yves Rizoud
f874a7b77a Fixed a missing refresh on first click of tools: lines, curves, polygon, grad circle/ellipse (issue 90)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@659 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-26 01:31:22 +00:00
Yves Rizoud
210265f70b Forbid resolutions < 320x200 (issue 126)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@658 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-26 00:54:47 +00:00
Yves Rizoud
55291aa3be (removed a debug print)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@657 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-26 00:43:03 +00:00
Yves Rizoud
9f85f5f1bb Bookmarks (issue 92) are now functional in Save/Load screens
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@656 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-26 00:31:36 +00:00
Yves Rizoud
5040a57bd1 Work-in-progress for bookmark directories. Only user interface, no code behind
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@655 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-25 00:35:42 +00:00
Adrien Destugues
a35619de75 Whoops ! I accidentally broken linux build while testing the amiga one.
The test i did is running the "version" command, which is returning the OS version on amiga (a bit like uname). Unfortunately this displays an error from bash when building under linux...


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@654 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-24 22:29:47 +00:00
Adrien Destugues
21bd270e31 Modifid themakefil for amiga 68k/VBCC. Will need some wok to actually compile, as it's not a posix
compliant platform. I now have to install SDL dev. packages...


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@653 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-24 16:17:34 +00:00
Adrien Destugues
bdc7388e77 Fixed save/load on linux :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@652 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-21 21:13:47 +00:00
Yves Rizoud
b9f1116fd3 Load/Save: Removed the drive icons
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@651 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-21 20:49:50 +00:00
Yves Rizoud
4db4454794 Added 00ai99 to credits
gfx2gui.gif: Resized the drive icons series to 8x8 and added bookmark and dropdown.
More work on dropdown controls, used in Load screen. Stable.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@650 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-21 02:59:55 +00:00
Adrien Destugues
0ce264aa3b Fixes a memory leak in dropdown menus. PNG saving is fine, loading gives an error but it seems to be some internal stuff
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@649 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-20 22:57:40 +00:00
Adrien Destugues
6b856384eb Fixes some more memory leaks. There are still some but it looks like they are SDL fault
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@648 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-20 22:04:17 +00:00
Adrien Destugues
a6a9a6cddf Fixes some memory leaks
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@647 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-20 21:57:03 +00:00
Yves Rizoud
aa7d13a3fc Resolution screen: Fixed a problem where it didn't find the current resolution, when using tall/wide/double pixels. If the cursor was not visible and you pressed OK anyway, it could crash.
Resolution changes: No longer reset the mouse cursor in center of screen.
Emergency save: When you run grafx2 again, the recovered images are now marked as modified (grafx2 will ask you to save before quit)



git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@646 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-20 20:12:27 +00:00
Yves Rizoud
58b793933c Fix Sieve menu display with tall/wide pixels or large resolution (issue 123)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@645 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-20 19:39:31 +00:00
Yves Rizoud
714521b5bf Started implementing dropdown lists. Rough but functional, currently used in Save/Load for choosing file format.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@644 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-20 01:56:43 +00:00
Yves Rizoud
d323b545ce Fix possible crash in extreme resolutions with wide and tall pixels. Manu factor was computed too big, causing clipped palette and windows didn't fit.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@643 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-19 19:37:03 +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
Adrien Destugues
86976c9dde Updates pinceau_x and pinceau_y when closing the resolution window.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@641 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-17 21:10:39 +00:00
Yves Rizoud
2d8beccbbd Fixed issue 122: Qshade only working in one direction with some tools.
Re-computed the dependencies, graph.o was missing, which could cause lots of problem if you don't 'make clean' when upgrading.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@640 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-17 19:13:18 +00:00
Yves Rizoud
13130acc67 Fixed the pipette leaking drops (issue 115) and a few other display bugs on mouse click or release
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@639 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-17 02:18:57 +00:00
Yves Rizoud
f6b184cd9b Fix color remapping problems in wide/double pixels (window background and FG color)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@638 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-17 00:44:47 +00:00
Yves Rizoud
fdf8015d77 Fixes the resolution screen with wide/tall/double pixels
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@637 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-16 23:04:58 +00:00
Yves Rizoud
b4609c55e8 Still signal handler
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@636 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-16 22:35:04 +00:00
Yves Rizoud
ca21225126 cross-platformness for signals
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@635 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-16 20:56:57 +00:00
Adrien Destugues
14671c56a6 Fixes build under linux. Isn't there a standard type for sighandler, working on all platforms ? this __p_sig_fn_t doesn't seem to exist on any unix...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@634 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-16 20:48:49 +00:00
Yves Rizoud
9f64588b04 Missing files. Re-oops
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@633 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-16 20:28:03 +00:00
Yves Rizoud
0bbd2249ea Fixed Contour crash when outside limits (issue 119)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@632 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-16 01:01:14 +00:00
Yves Rizoud
6c2d55ed8f Implemented Double Pixel mode (issue 86)
Tall pixels can now be used in resolution minimum 320x400, and Tall pixels minimum 640x200. (instead of 640x400 for both)
Fixed: There was incorrect error recovery when trying to use a fullscreen mode too small to use wide/tall/double pixel.
Little code cleanup in the different pixel renderers.



git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@631 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-15 23:34:35 +00:00
Franck Charlet
8ed5019b02 - Fixed the usual problem due to non posix code
- Made the png lib optional with: __no_pnglib__

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@630 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-15 17:03:18 +00:00
Yves Rizoud
108b887f07 (Windows) Free memory is now queried with GlobalMemoryStatus, so GrafX2 can be used on ...DOS with HX extender.
The result now tops at 4Gb free physical. Previously it would wrap, causing problems if you were extremely unlucky.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@629 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-14 20:22:01 +00:00
Yves Rizoud
d704c4f425 Implemented last-chance recovery that saves the current and spare page. (issue 97)
Tested OK on Windows when crashing Contour (issue 119)
Doesn't handle frozen states (when killed in task manager), I'll have to look further.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@628 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-13 01:12:52 +00:00
Yves Rizoud
546dc6011f Fixed an old, possibly lethal memory overrun in Backup buffers, when using long file names (>12)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@627 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-11 01:07:43 +00:00
Yves Rizoud
a28deef902 Fixed zoom window bar not draggable (issue 114)
Checked for all other uses of "while (!Get_input())", seems ok.
Palette screen: Copy,Swap,X-Swap now take place when you click button, not release.
In all screens where you could press ` and pick a color (palette, shade...): The action now takes place when you click, not release.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@626 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-11 00:00:17 +00:00
Yves Rizoud
aaa393e12f Fixed a FREEZE from r619 in Load screen, which happened when previewing an image, if your palette showed more than 255 colors...
Reworked GIF Save/Load. Now saves as GI89a, and is able to save and reload text comments.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@624 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-10 20:18:45 +00:00