14 Commits

Author SHA1 Message Date
Franck Charlet
99b99322be Added the missing objective C files for the macosx and fixed the changes you forgot in main.c etc..
Also added a way to handle the right mouse button when the shift key is pressed (for mice with only have 1 button :]).

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@264 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-15 20:55:31 +00:00
Yves Rizoud
54b4f5a121 Resolution and window size remembered in gfx2.ini. Gfx2.ini now uses hosts' end-of-line character(s)
Removed Gfx2.ini from SVN, since it's automatically re-created from Gfx2.dat as needed.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@202 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-05 19:10:46 +00:00
Adrien Destugues
5a2f86a4d6 set the window caption to something useful
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@192 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-04 18:45:05 +00:00
Yves Rizoud
7ba9a726dc Implemented window sizing (and re-sizing) by draggin window edges.
Unfinished, more work needed in:
* command-line arguments (grafx2 myimage.pcx -width 640 -height 480)
* querying SDL for best modes
* detecting bad modes and recovering (though shift+return restores to window)
* saving settings in gfx2.ini.
Also, now the window's close button triggers Quit. Both events (quit, resize)
are only taken into account when all menus are closed.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@188 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-03 01:06:42 +00:00
Yves Rizoud
7bf71cd7b0 More work on endianness. Grid settings are now saved and reloaded.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@187 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-30 19:24:49 +00:00
Yves Rizoud
48fca5ceb3 When gfx2.ini is missing, default values are now taken from gfx2.dat.
Removed a custom toupper() function.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@174 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-27 20:17:00 +00:00
Yves Rizoud
51a4b91b91 Save/Load: (linux) .. now appears, and options "Show hidden files" and "Show hidden dirs" now work.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@164 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-25 18:24:26 +00:00
Adrien Destugues
734b305afb Avoid crash when drawing offscreen (circles for example)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@63 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-25 08:02:43 +00:00
Adrien Destugues
4ba7550bfc Corrected Memoire_libre to take account of mem_unit in the sysinfo
struct


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@55 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-07-22 08:25:39 +00:00
Adrien Destugues
50d60aa753 Correction de nombreux bugs dans la gestionde la souris et du clavier
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@51 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-04-05 09:48:19 +00:00
Adrien Destugues
5c2811df34 Basic keyboard handling, default resolution set to 800x600 instead of 320x200
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@50 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-04-04 07:00:00 +00:00
Adrien Destugues
689e6a21ed Restore screen resolution on quit. Clean SDL freeing.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@41 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-11-11 18:59:25 +00:00
Adrien Destugues
a6ea5950f6 Lots of speedup-cleanup-debug. Menu is usable, we need to implement drawing functions now...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@39 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-11-03 19:12:03 +00:00
Adrien Destugues
306a004e36 First upload of the code.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2007-04-14 20:18:30 +00:00