62 Commits

Author SHA1 Message Date
Thomas Bernard
11004d048a readline.c: remove spaces before EOL 2019-06-09 20:07:20 +02:00
Thomas Bernard
f35b659ce9
fix double keystokes with SDL2
tested with both keyboard input and Virtual Keyboard

see http://pulkomandy.tk/projects/GrafX2/ticket/135
2019-06-09 20:06:03 +02:00
Thomas Bernard
583d646b26
X11 clipboard paste : support several formats 2019-05-11 12:09:15 +02:00
Thomas Bernard
91c5d7833a
readline: Put cursor on clicked position
by default the cursor was always set at the end of the string.
Now it is where clicked.
see http://pulkomandy.tk/projects/GrafX2/ticket/103
2019-05-02 20:59:50 +02:00
Romain Graillot
d36e59ca9c Add Nintendo Switch support (including gitlab-ci, gitlab-pages etc.) 2019-04-28 11:18:23 +02:00
Romain Graillot
72d87c0d2a Fix virtual keyboard input and visual glitches 2019-04-11 19:47:49 +02:00
Thomas Bernard
8459266c47
Add MSVC project for SDL2 build + SDL2 unicode text input for win32 2019-01-25 15:11:29 +01:00
Thomas Bernard
371741544b
comments and error log in Readline_ex_unicode() 2019-01-25 15:11:29 +01:00
Thomas Bernard
7331ad9bdf
X11 picture paste support (PNG format)
works with what GIMP puts in the X11 CLIPBOARD
2018-12-30 10:20:50 +01:00
Thomas BERNARD
00cbe729b2 fix NO_X11 option support 2018-09-14 17:23:52 +02:00
Thomas Bernard
11b2b609ed readline: improve doxygen comments 2018-07-27 14:29:25 +02:00
Thomas Bernard
88430bb92f
Add NO_X11 option at compiletime to disable X11 specific stuff with SDL driver
just compile with
$ NO_X11=1 make
2018-07-20 12:26:52 +02:00
Thomas Bernard
6ec72f6b71 check for X11_display when using SDL
SDL can be using another video driver
2018-07-20 12:19:34 +02:00
Thomas Bernard
d7c6193c21 SDL/x11 : make Copy/Paste and Drag&Drop work 2018-07-17 01:09:04 +02:00
Thomas Bernard
8ec57abf88 use SDL2 clipboard (not with Win32) 2018-07-17 01:09:04 +02:00
Thomas Bernard
c72b3ce5b7 Implement Pasting (with command-V) in OS X 2018-07-04 17:27:49 +02:00
Thomas Bernard
d455f8ab93 X11 paste : proper charset conversion
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-03 14:18:53 +02:00
Thomas Bernard
b67e264026 Implementation of X11 pasting 2018-07-03 12:28:13 +02:00
Thomas Bernard
e8a9d7e700 add a missing blank line ;)
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-03 12:06:14 +02:00
Thomas Bernard
74a8ad142f readline.c: properly handle input_char/input_key with different values
the code was relaying on Key codes being legal ASCII (ANSI) codes
which us the case with SDLK_* but not with XK_* codes
2018-07-02 11:38:52 +02:00
Thomas Bernard
cb2d479867 add GFX2_Get_Window_Handle() to get the win32 HWND
and use it
2018-07-02 11:38:51 +02:00
Thomas Bernard
6aaef13a6b Fix readline for Win32 and SDL 2018-07-02 11:38:51 +02:00
Thomas Bernard
aa73e76e67 SDL2: readline.c uses SDL_TEXTINPUT unicode input text 2018-07-02 11:38:51 +02:00
Thomas Bernard
3e4f3d0313 WIP. build under Win32 without SDL 2018-07-02 11:38:51 +02:00
Thomas Bernard
4d86b8a0c1 change all references to SDLK_xxxxx to KEY_xxxx
+ some fixes
2018-07-02 11:38:51 +02:00
Thomas Bernard
77005eb780 use screen.h instead of sdlscreen.h, etc.
Create grafx2-win32 MSVC++ project
create keycode.h
various fixes
2018-07-02 11:38:51 +02:00
Thomas Bernard
92facef46d Convert comments to UTF-8
most were encoded in Latin1 / CP1252
but a few lines in op_c.c were using IBM437/850 !
2018-06-26 11:37:19 +02:00
Adrien Destugues
5918435cd8 Fix haiku/gcc2 build. 2018-05-06 17:02:38 +02:00
Thomas Bernard
187c7d53e3 Fix a few warnings (from MS Visual Studio 2015) 2018-04-06 16:45:35 +02:00
Thomas Bernard
f32eacaa01 Make compilers happy, remove warnings...
unsigned/signed comparaison in miscfileformat.c
unused argument in readline.c
2018-03-05 09:22:03 +01:00
Thomas Bernard
60beebc9ac fixes for MSVC non-standard C library
strcase => _stricmp
strncase => _strnicmp
strdup => _strdup
snprintf => _snprintf

a compliant snprintf() is supposed to be available
in MS Visual Studio 2015 and later
2018-02-20 15:45:45 +01:00
Thomas Bernard
fda4708756 implement Unicode Copy/Paster for win32 2018-02-20 15:45:45 +01:00
Thomas Bernard
6f48d7fefe Add MSVC 2010 project file and a make the project compile 2018-02-20 15:45:45 +01:00
Thomas Bernard
339e37663f readline.c: fix cursor display with unicode characters 2018-02-20 15:44:39 +01:00
Thomas Bernard
144d10b682 Support Unicode Keyboard Input 2018-02-20 15:44:39 +01:00
Thomas Bernard
689aebf264 Unicode support in keyboard editable field for filename 2018-02-20 15:44:39 +01:00
Adrien Destugues
a321c4c785 Fix building with MinGW from Linux 2017-05-08 09:33:01 +02:00
Adrien Destugues
78fcc648c3 Partial merge of the SDL2 branch into trunk
* Mainly get the cleanup of window drawing functions.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2102 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-02 13:44:18 +00:00
Adrien Destugues
61c8dca353 Add a port to the GCW Zero, contributed by David Knight.
Untested since I don't have the hardware.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2080 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-10 20:13:57 +00:00
Yves Rizoud
1248100ae9 Integrate path fix from Android port (tnanks a lot Pelya)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2071 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2014-03-30 17:31:05 +00:00
Yves Rizoud
69f24bc69f Text tool: Fix issue 487 (pasting from clipboard 'resurrects' older long string) and fix a mouse cursor dropping.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2009 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-25 22:27:02 +00:00
Yves Rizoud
144a28412b Issue 453 : Virtual keyboard setting
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1999 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-18 23:41:55 +00:00
mazzearos
18886d86cb Added clipboard support for AROS.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1976 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 22:10:04 +00:00
mazzearos
c68f05cda5 Some fixes for AROS:
src/text.c: Added path for truetype fonts.

src/Makefile: Create GrafX2 binary in the root directory. This allows
running without any prior installation.

src/readline.c: Added ':' to the forbidden charactersS.

src/const.h: Use '/' as indicator for parent directory.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1972 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 13:02:00 +00:00
Adrien Destugues
235f7d4d1c Just fix some warnings for Haiku as well.
One of them was a missing prototype, the other was likely some strangeness in the definition of size_t.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1953 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-12 11:48:39 +00:00
Yves Rizoud
bbd0d0114c Fix an error in previous commit. Zero warnings on Windows too (Mingw, gcc 4.4.1-TDM)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1946 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-03 22:46:04 +00:00
Yves Rizoud
d8bb1e1d55 Fix some mostly harmless warnings and re-generated dependencies. Now compiles with zero warnings on Linux (gcc 4.1.2)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1945 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-03 21:32:59 +00:00
Yves Rizoud
775ee56ed0 Paste in Text tool: fix a graphic overflow.
Palette reduce: use DawnBringer's formula for color likeness

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1837 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-10-01 19:26:13 +00:00
Yves Rizoud
db3293060f Clipboard paste: Support carriage returns and characters 128-255
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1836 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-09-27 00:03:16 +00:00
Adrien Destugues
242c73f4c3 Validate pasted strings.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1830 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-09-25 13:40:22 +00:00