669 Commits

Author SHA1 Message Date
Yves Rizoud
f1730ea0e4 Reverted the default mode to 'window'. Disabled window mode for GP2X, so it falls back on the first available mode.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@847 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-06 22:56:17 +00:00
Adrien Destugues
3aa04afc59 Tweaks to the config file for better gp2x experience.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@845 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-06 21:59:57 +00:00
Adrien Destugues
1cf83a2ed7 Fixed various aspects of the gp2x button handling :
- Default button mapping so you can at least click on the buttons
- Keep button press and button release in sync, so you use the same button for the same thing
- Fix display of the buttons

I noticed that ALT is interfering with the buttons names. Maybe we are using too much bits. CTRL and SHIFT work fine.
Also, the gp2x builds start by default in windowed mode at 640x480. This means the screen is hardware scaled down... that makes the program almost unusable, you have to go to the screen menu and switch to a more useable resolution. Finally, all the softscaled modes should be disabled, because the hardware scaler does its work very well :)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@844 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-06 21:57:29 +00:00
Adrien Destugues
b04303ddc9 Some fixes for gp2x, the define is actually uppercase.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@842 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-06 21:11:47 +00:00
Adrien Destugues
414c7ba418 gp2x build fix.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@841 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-06 20:47:54 +00:00
Yves Rizoud
fb4d2fdb43 Fix part of Issue 168: Mouse3 shortcuts are no longer allowed at wrong moments during drawing.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@839 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-06 19:30:39 +00:00
Yves Rizoud
106912a5a0 Updated version number and README. Makefile can now change program version label, with 'make version LABEL=2.whatever
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@838 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-06 19:01:48 +00:00
Yves Rizoud
a92fd3da13 Fix: In Settings screen, right-clicking on 'Undo pages' didn't clear the value.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@837 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-06 14:21:07 +00:00
Yves Rizoud
c2da50357a Makefile fixes for make install, by 00.rgb.studios (Issue 173)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@836 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-04 23:43:08 +00:00
Yves Rizoud
507a6bebd9 Updated help screens (Grad ellipse, Resolution:Pixel size, Palette:Sort)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@835 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-03 23:58:47 +00:00
Yves Rizoud
b9f9a96ce8 Fix issue 172: Ellipse overflow with large sizes on 32bit cpus.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@825 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-01 21:27:28 +00:00
Yves Rizoud
33bb5622c0 Fixed bad display and possible crash, when the zoomed area showed more than 512 pixels (requires resolution >1600)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@824 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-01 18:47:08 +00:00
Yves Rizoud
0826798943 Added HoraK-FDF to bugfinders in About screen,
Fix part of issue 169 (Resize while a window is open waits for an additional click or keypress after the window is closed.)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@822 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-26 19:31:01 +00:00
Yves Rizoud
a32d28e157 Fix issue 170: Fileselector displays only letters until the first dot
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@821 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-26 19:14:40 +00:00
Yves Rizoud
3925e87363 Updated Help for mouse sensitivity
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@820 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-24 23:07:03 +00:00
Yves Rizoud
bb2794ed2b Fix issue 161 (Linux: The window "resists" resizing)
Fix issue 159 (Mouse sensitivy in fullscreen mode) by implementing user-defined mouse sensitivity in Settings screen, only affects fullscreen mode.
Fix: When changing pixel size, sometimes there were some remaining "dirty lines" at the right edge of screen/window.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@819 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-24 22:26:08 +00:00
Yves Rizoud
a3dbf3d4ac Skin: Fixed up some accented characters in font
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@817 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-23 01:40:20 +00:00
Yves Rizoud
4191b37099 Fixed issue 167: Crashes on win98 with international keyboards (SDL.DLL, recompiled from 1.2.13 source archive)
Fixed old bug (all platforms): When typing text with dead-keys like ^ ` it would additionally type the character on same key for US-QWERTY keyboard.
Removed the "disable Unicode" option added in r814, no longer needed.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@816 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-23 01:29:18 +00:00
Yves Rizoud
9e4866e34c Implemented US-qwerty shift characters, when Unicode is disabled
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@815 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-22 19:24:03 +00:00
Yves Rizoud
8f5fc2c923 New .INI setting to allow disable unicode (issue 167)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@814 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-22 19:02:23 +00:00
Yves Rizoud
f4cb7985f2 More manual ANSI conversions for when Unicode is off
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@813 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-22 18:28:01 +00:00
Yves Rizoud
e8dd8588d0 Workaround of issue 167: Unicode only enabled while entering text, so at all other moments there's no SDL crash when pressing ^ key (French or German keyboard) on Windows 98
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@812 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-22 18:14:13 +00:00
Yves Rizoud
4f157197e8 Fix issue 166: Bookmarks now allow characters # and ;
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@811 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-22 17:51:11 +00:00
Yves Rizoud
1b06317924 Fix issue 165: MS Windows no longer opens the program window at arbitrary (wrong) position, it restores instead the last position you used.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@810 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-20 00:11:32 +00:00
Adrien Destugues
b9849fe8ad Added MagerValp to the bugfinders.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@809 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-15 11:10:26 +00:00
Yves Rizoud
1669251259 Source comments
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@807 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-14 18:46:31 +00:00
Yves Rizoud
4a39819c86 Follow-up on previous commit: Generalized the "Command" key support, it compiles on all platforms and somebody may want to plug a Mac keyboard in a PC :)
Added a "command" symbol in the fonts, so shortcuts that use this key can be displayed.
Fixed: In Keyboard settings, some very weird keys (Thinkpad "volume up") were displayed with a wrong number.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@806 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-14 18:42:03 +00:00
Franck Charlet
2feab9d52c - Issue #160 should be fixed now.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@804 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-14 13:49:36 +00:00
Yves Rizoud
315a17ae5b Double-clicking a palette color to open the palette now requires a time of less than 0.5 seconds between clicks
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@803 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-13 18:17:24 +00:00
Adrien Destugues
ce812e481d -Bring back the adaptive sleeping in the main engine. Still using static 20ms sleep in idle waiting loops (when mouse doesn't move)
-Discontinuous freehand now uses an asynchronous method for delaying. It is sensitive to the delay set in the airbrush/spray menu.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@802 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-12 22:16:05 +00:00
Adrien Destugues
fe637a504c Removed old todo list (most of it is done, the remaining parts are on the bugtracker)
Slightly reformatted the readme and added a nice ascii logo to it.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@801 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-12 21:03:17 +00:00
Adrien Destugues
ff83f12b31 Fixed all sdl_delays to wait for 20ms, not 1. Avoid problems for low-latency guys.
Also, made the splash screen stay as long as you don't click or key. Mouse moves are discarded. Sorry!


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@800 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-12 19:05:33 +00:00
Adrien Destugues
3c0a940301 Removed Wait_VBL. Was only used for slowing down things. Used SDL_Delay(1) instead, which let the OS handle other things. We should get about 10-20ms latency with that. Scrollbars may be slightly faster. The only place where this could be a problem is discontinuous freehand. If the current way it works isn't good, look at the "Chrono" functions (like the spray) instead.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@799 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-12 18:00:19 +00:00
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