428 Commits

Author SHA1 Message Date
Yves Rizoud
840d26cd17 Fixed: When the last resize was by the 'safe resolution' button, on exit the program recorded the previous window size instead.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@553 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-24 15:19:28 +00:00
Adrien Destugues
bcc835f251 New input handler. Still work in progress and unused, but it's time to sleep for me :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@552 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-21 23:02:00 +00:00
Adrien Destugues
e814096a51 We don't need this one either
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@550 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-21 19:11:46 +00:00
Adrien Destugues
1570975949 Removing the english doc since it has been moved inside the wiki.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@549 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-21 19:10:50 +00:00
Pete Gordon
9cc7eb694c "Liste_Nb_Repertoires" needs a lowercase "r".
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@528 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-21 18:07:39 +00:00
Adrien Destugues
2e68ad55bf Remove some more useless files.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@515 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-21 16:42:52 +00:00
Adrien Destugues
73cd2e4e5d Remove some old useless files, and add a png format icon for linux (wich does not like ico too much).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@514 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-21 15:03:19 +00:00
Franck Charlet
3ff77f068b - Fixed a compilation warning under macosx.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@503 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-21 00:26:29 +00:00
Adrien Destugues
0f2d642847 Amiga systems use / and not .. for parent dir. Takes this into account...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@498 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-20 18:33:50 +00:00
Adrien Destugues
fec8d023e9 Small fixes reported by the builders for MorphOS and AROS. Thanks to you both :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@487 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-20 16:17:36 +00:00
Adrien Destugues
3fb7800824 Small fixes to mountlist.c for beos and skyos. Apparently they went lost some time ago...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@483 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-19 18:59:31 +00:00
Adrien Destugues
f2d8cbbfe1 unfixed Attendre_fin_de_click, works better when buggy in fact :D
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@482 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-15 21:13:40 +00:00
Yves Rizoud
4e0cdaef12 Readme: Mostly reordered history and added raough dates, and added some license details.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@481 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-15 21:03:34 +00:00
Adrien Destugues
e6602b2e15 Fixes small missing refresh in the palette sceen. Add back the old readmes.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@480 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-15 19:38:23 +00:00
Adrien Destugues
fcfe85258c New up to date end-user readme file. Feel free to add/change/correct/whatever :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@479 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-15 18:39:01 +00:00
Adrien Destugues
1b3489bb96 Removes a call to Wait_VBL and replaces it by SDL_Delay
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@478 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-14 16:36:38 +00:00
Yves Rizoud
dc4abe6245 Added palette constraint modes: Run the program with command-line option "/rgb <N>" to force RGB components have N levels instead of 256. Ex: /rgb 16 enforces a classic Amiga 4096 color palette, 64 is PC VGA, /rgb 3 is Amstrad CPC...)
Added missing messages for /wide and /tall command-line arguments.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@477 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-13 23:48:33 +00:00
Adrien Destugues
0c245896c5 Use GIF as the default format, as PKM can't save the whole palette range.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@476 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-12 11:52:01 +00:00
Adrien Destugues
53c2936697 Attendre_fin_de_click could return if the event queu was empty while the button was still pressed. Now fixed.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@475 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-12 10:32:36 +00:00
Adrien Destugues
ab5f789fdf Mostly some cleanups.
Also added two experimetal functions, Ouvrir_popup and Fermer_popup, and started to implement a (commented) example popup menu for selecting freehand draw mode.
But it seems there are problem if doing a while(Mouse_K), Mouse_K seems to be reset when the mouse moves, or in some other place. Time to sleep so i'll continue that tomorrow.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@474 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-11 21:59:10 +00:00
Franck Charlet
7c4d2675ad - Modified mountlist.c to operate on MacOSX.
- Also fixed a bug in init.c: !strcmp(Liste_points_montage->me_mountdir,"/") && !strcmp(Liste_points_montage->me_mountdir,"/home") should have been
strcmp(Liste_points_montage->me_mountdir,"/") && strcmp(Liste_points_montage->me_mountdir,"/home")
since root & home are already added before (strcmp returns 0 if strings match).

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@473 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-11 03:26:03 +00:00
Yves Rizoud
cd1c720029 Fix in makefile ('strip' command)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@472 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-11 01:45:14 +00:00
Yves Rizoud
ba8ee723fe Fixed refresh problems in brush rotate and brush stretch, when screen was zoomed or scrolled.
The buttons in the screens FX and Brush FX now use the same shortcuts as when drawing.
The help screens for FX and Brush FX now show the keyboard shortcuts of all functions.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@471 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-11 00:41:20 +00:00
Yves Rizoud
b73d8b03dc The Spray tool no longer lags when you use a >0 delay setting.
Delay is now expressed in 1/100s, with range 0-99

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@470 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-10 17:28:38 +00:00
Yves Rizoud
0b801a28c8 Fixes a severe memory leak, up to 200Kb every time you closed a window. oops!
Fixes a missing refresh when you initiate window dragging.



git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@469 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-10 15:41:56 +00:00
Pete Gordon
d287384d93 - Fixed the Amiga volumes stuff in init.c, although i think it should be
removed again since it is impossible to differentiate between volumes
  using only a single character.

- Made the OS4 "show drives" code work on all amiga platforms (hopefully)



git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@468 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-08 13:57:25 +00:00
Adrien Destugues
f3c63fe785 Smoother joystick to cursor move conversion.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@467 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-06 13:41:57 +00:00
Adrien Destugues
839ffaafd9 sorry, we still need some tabs here :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@466 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 23:01:39 +00:00
Adrien Destugues
154f5e824a Fixes all the tabulation problems.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@465 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 22:55:30 +00:00
Adrien Destugues
bdf86b06a8 More joystick fixes and some patches to the makefile (we need a different name for the strip binary when cross compiling). Please update your platform with new STRIP = strip line ...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@464 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 22:23:57 +00:00
Adrien Destugues
8c0475c43e Simple joystick support. Should be made configurable and all the gp2x buttons could be used as shortcuts.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@463 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 22:00:23 +00:00
Adrien Destugues
132eabcde5 Some work on a port for the gp2x. Runs up to the splashscreen, but as there is no mouse i have to make the program usable with a joystick.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@462 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 21:12:46 +00:00
Yves Rizoud
c130a327d1 Complements of r458 for windows build
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@461 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 19:35:27 +00:00
Adrien Destugues
9cb5818bec List volumes on amiga platforms. warning, untested code !
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@460 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 16:14:39 +00:00
Adrien Destugues
806e491650 Little fix for AROS linking
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@459 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 15:32:29 +00:00
Adrien Destugues
2c8fe249e6 Adds a listing of all the mountpoints under linux. I used a piece of code from gnulib, but i'm not sure it's a very good idea. It works for me and should be easy to adapt for many other platforms. This may need some tweaking to work also under beos and skyos (and possibly other unix-like), but if not done, the function will be compiled empty and will not harm anyone.
Also, cleans some warnings that occurs with -pedantic -c99 options to gcc, and some little things pointed by splint.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@458 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-05 15:26:59 +00:00
Adrien Destugues
36a99a8fc2 added morphos port to the helpscreen
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@457 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-04 21:47:15 +00:00
Adrien Destugues
5971f4c9e3 MorphOS port, and some tweaks to the config tool to make it look a little bit less ugly. We should probably use a better color palette for it anyways.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@456 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-04 20:41:22 +00:00
Yves Rizoud
159d623f44 Sliders no longer lag the mouse cursor, and the delay stops when you release one mouse button or click the other.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@455 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-04 16:18:29 +00:00
Adrien Destugues
94e26e5764 Replaces GLOBAL by GFX2_GLOBAL in graph.h, because it conflicted with something in MorphOS.
Anyways, this GLOBAL thing looks quite ugly, maybe we should clean it up in some way... is there a better way to do the same thing ?


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@454 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-03 15:20:00 +00:00
Adrien Destugues
8f66a5905d Discards mouse moved event if the calculated X and Y did not changed (can happen in zoomed mode because we are dividing the coords)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@453 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-01-02 11:06:22 +00:00
Pete Gordon
8fe10d38dc MSDOS text format problem again. Sorry. Will try and be more careful with
this... :-/


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@452 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-31 21:52:24 +00:00
Pete Gordon
c582a90500 Fixed a bug where the graphics would get sometimes trashed when resizing
the window. I fixed it by forcing the width to a multiple of 16 instead of
4 (only for OS4).


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@451 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-31 21:50:33 +00:00
Pete Gordon
0b7b96ae75 Enabled TTF fonts in OS4 build, scans system default directory for TTF
files.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@450 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-31 21:36:47 +00:00
Pete Gordon
232ed1041d Endian fixed Save_BMP
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@448 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-31 11:44:41 +00:00
Pete Gordon
e41f494aba Ooooops! I used an editor that didn't cope with MSDOS text file format and
so messed up io.h's layout. Fixed it now. Sorry!


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@447 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-31 11:07:08 +00:00
Pete Gordon
be5422f7ad FINALLY fixed the load/save bugs in OS4. It was just a stupid mistake in
io.h... wrong seperator!


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@446 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-31 11:04:35 +00:00
Pete Gordon
761f872ee2 A couple of changes to let it build again for OS4.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@445 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-31 10:16:08 +00:00
Adrien Destugues
d6ef5ddd95 Added pete's mail to the helpscreen.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@444 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-31 09:18:34 +00:00
Yves Rizoud
7a3887f4f0 Fix the Brush Resize&Rotate keyboard shortcuts, after use they were blocking mouse clicks
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@443 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-12-31 00:24:16 +00:00