701 Commits

Author SHA1 Message Date
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
Yves Rizoud
17dbcfa61e The secondary Palette screen (right-click [PAL] or press shift-P) now allows changing the menu palette cells, as well as the RGB scale.
It's not very pretty screen at the moment, but it works.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@623 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-10 01:27:15 +00:00
Yves Rizoud
82dc541a3c Menu: Palette size is now free, 1-256 on X and 1-16 on Y (non-powers-of-two are accepted)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@622 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-09 21:44:15 +00:00
Adrien Destugues
990e016381 Grad Rect cancellation now works :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@621 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-09 20:30:14 +00:00
Yves Rizoud
de54ecb44a Fix recent input bug that made Y mouse movement very choppy (it was ignored until a X movement happened)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@619 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-09 00:16:03 +00:00
Yves Rizoud
bba08c936f Configurable palette size (issue 47)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@618 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-08 23:59:30 +00:00
Yves Rizoud
dbdd73c0c3 Tried to improve the splash screen, and failed. Never mind, it's not important
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@617 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-08 19:09:39 +00:00
Yves Rizoud
1f7f1b87ea Fix buttons refresh, wrong in wide and tall pixel modes.
Fix window dragging not showing XOR rectangle (recent)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@616 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-08 18:40:20 +00:00
Yves Rizoud
f00c58ade3 PNG format now saves the pixel ratio if the program is in /wide or /tall mode.
The ratio is also reloaded, but not used yet.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@615 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-08 17:53:45 +00:00
Yves Rizoud
e15b3194e0 Some fixes in hotkeys table
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@614 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-08 03:23:12 +00:00
Yves Rizoud
47c8397cbf In gfx2.ini, setting Merge_movement to >0 should help solve lag (issue 80)
for users who have a mouse with update frequency >100Hz


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@613 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-08 01:43:14 +00:00
Yves Rizoud
1ed8852d64 Fixed mouse cursor in text input (Readline(), recent problems)
Fixed refresh problem when rotating a brush outside of screen limits (bug in 98%)
Fixed Palette window having 'S' as shortcut for 2 functions.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@612 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-08 00:46:42 +00:00
Yves Rizoud
8aadfe3732 When you use a keyboard shortcut to activate a window button (ex: ESC), it shows it's activated.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@611 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-08 00:11:35 +00:00
Yves Rizoud
2efe96f1a8 missing file
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@610 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-07 23:38:22 +00:00
Yves Rizoud
9d428e1e38 Keyboard shortcuts are customizable from within Grafx2.
2 shortcuts per function. You can use keys, MouseWheel, Middlebutton, joystick buttons,
in combination with Alt, Shift, Control.



git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@609 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-07 23:36:11 +00:00
Yves Rizoud
2e2cd8073d Safety in Help text
GUI image change: Added more characters in help font.
Shortcuts: Change internal "no key" value from FFFF to 0000


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@608 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-07 01:44:23 +00:00
Adrien Destugues
a236e40fa6 Fixes monochrome image preview (add some sane colors). Real 2-color palette is still used on loading the picture.
Note: can display broken preview if an image is using multiple entries with the same color, and some of them are selected for cm_clair and cm_fonce.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@607 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-06 15:02:54 +00:00
Yves Rizoud
ec256da711 Mouse fixes
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@606 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-06 01:22:50 +00:00
Yves Rizoud
05ede3ed0a Save/Load: Fixed the missing confirmation message (issue 105)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@605 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-05 23:47:52 +00:00
Yves Rizoud
5c0ec7effb gp2x button labels
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@604 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-05 23:36:36 +00:00
Yves Rizoud
708e2adbf8 More stuff for double shortcuts
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@603 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-05 23:14:09 +00:00
Yves Rizoud
13aa8e0988 Support for two shortcuts per function
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@602 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-05 22:58:13 +00:00
Yves Rizoud
ca2e12ff00 A million fixes in operations' cursor display. Oh gods I wake up in 4 am.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@600 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-05 01:24:02 +00:00
Yves Rizoud
266145cd0a Menus: Implemented 'repeatable buttons' that work like slider arrows.
Used for [+] [-] in Palette and Text, and for the arrow buttons that scroll Sieve pattern.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@598 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 20:34:53 +00:00
Adrien Destugues
16b405ccfe Fixes some little bugs with Attendre_fin_de_click.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@597 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 20:30:02 +00:00
Adrien Destugues
211e88e2bc Added iLKke and Timo to the bugfinders list.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@596 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 20:19:24 +00:00
Yves Rizoud
0cf4597a03 Buttons: Now you can 'cancel' a click by dragging the mouse outside of the button before releasing click, pretty much like a Windows button.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@595 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 19:43:15 +00:00
Adrien Destugues
5992013629 Fixes buttons being depressed on mouse press
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@594 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 18:29:07 +00:00
Adrien Destugues
f90af64c83 Disables keyboard on "Attendre_fin_de_clic", so we no longer need to empty the event loop.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@593 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 18:21:48 +00:00
Adrien Destugues
00b67c23ef Fixes missing refresh on color select with keyboard shortcut
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@592 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 17:58:57 +00:00
Yves Rizoud
da942a7021 Support for ESC shortcut on GP2X (button X)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@591 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 01:27:04 +00:00
Yves Rizoud
aaec8fd8a5 Same with 'end' key
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@590 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 00:26:23 +00:00
Yves Rizoud
bb7f09fc8e Fix CRASH in Help screen, when pressing PageDown in pages of less than 16 lines. Bug is present in 98.0% release:(
Internal support for action shortcuts on joystick buttons, mousewheel, mouse3.
Mousewheel now scrolls lists in Save/Load, Text, Help.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@589 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-04 00:23:27 +00:00
Yves Rizoud
0c26dc6459 Contourfill now uses a kind of 'additive XOR' lines : Pixels stay marked even if you pass over them several times.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@588 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-03 21:58:25 +00:00
Yves Rizoud
daf5f99979 Makefile fixes (ziprelease)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@587 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-03 01:34:26 +00:00
Yves Rizoud
306752eaeb Fixed Contour to allow drawing single pixels
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@586 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-03 01:18:28 +00:00
Yves Rizoud
599e835e28 Fix the clipping of mouse cursor.
Fix joystick buttons not causing action if no mouse movement.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@585 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-03 00:20:37 +00:00
Yves Rizoud
5a80cdae44 Fixed the double icons having their diagonal not shaded on selection.
Fixed the Ellipse / Grad ellipse icon graphics (were quite off-centered)
Some tidy-up of input.c


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@584 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-02 23:09:06 +00:00
Yves Rizoud
1150dcea21 Implemented basic joystick control : dir+AB on most platforms, pad+AB on GP2X
Implemented accelerating cursor with joystick / kb cursor
Fixed up the contextual help, somehow

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@583 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-02 18:22:23 +00:00
Yves Rizoud
db02be0e41 Fix the Contour not advancing the backup/redo status.
Fix the polygon filling (used in 3 tools) to include all the right pixels. whoo!
Fix the operations' cursors, that I broke when I added Contour.




git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@582 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-02-02 00:53:07 +00:00