2332 Commits

Author SHA1 Message Date
Thomas Bernard
d00e96dfb2 win32: force the window redraw when changing palette
Fixes the "window stay red" after flashing bug.
2018-11-09 12:50:42 +01:00
Thomas Bernard
970b9a179c fix for building with MS Visual C++ 2010
snprintf should be defined to _snprintf on this compiler
2018-11-09 12:50:40 +01:00
Thomas Bernard
821540bb05 3rdparty: libpng 1.6.34 => 1.6.35. Lua 5.3.4 => 5.3.5 2018-11-09 11:39:47 +01:00
Thomas Bernard
8b38c36090
cleanup in Load_C64() 2018-11-06 23:52:16 +01:00
Thomas Bernard
f207567d38
doxygen for Load_C64_fli() 2018-11-06 23:26:42 +01:00
Thomas Bernard
4c8e56101f
oldies.c/.h: Document C64 FLI functions 2018-11-06 22:32:31 +01:00
Thomas Bernard
4b52718c1e
display error message to the user when saving C64 FLI 2018-11-06 22:31:55 +01:00
Thomas Bernard
cb5dd7ae69 reindent Save_C64_multi() and Save_C64_fli() 2018-11-06 22:14:15 +01:00
Thomas Bernard
2b22a7fe1d C64 pictures are 16 colors (4bpp) 2018-11-06 22:13:34 +01:00
Thomas Bernard
5f6c1a2c55
improved comments / readability of Save_C64_multi() + add debug log
The algorithm to choose the background color is improved.
2018-11-06 20:57:21 +01:00
Thomas Bernard
06f8809337
Fix in Save_C64_multi() 2018-11-06 20:50:51 +01:00
Thomas Bernard
5ac8811dbe
add missing break statement (see commit eba26aaa )
eba26aaa96
2018-11-06 18:05:08 +01:00
Thomas Bernard
b05cee4d0d
palette.c: declare relevant variables as static 2018-11-06 17:39:06 +01:00
Thomas Bernard
afe65bfb92
use snprintf() in Get_color_behind_window() and Status_print_palette_color() 2018-11-06 17:39:02 +01:00
Frederic Cambus
67dc001e7c Fix build on OpenBSD and NetBSD 2018-11-06 14:30:41 +01:00
Thomas Bernard
0f8a6805a0 add showimage-sdl2 to .gitignore 2018-10-17 16:47:45 +02:00
Thomas Bernard
725da6307e
Remove warnings with GCC 7
GCC 7 introduced a new warning in switch() statements :
warning: this statement may fall through [-Wimplicit-fallthrough=]
2018-10-17 16:42:54 +02:00
Thomas Bernard
7f52eb9711
show free disk size with OpenBSD and NetBSD too 2018-10-17 16:09:50 +02:00
Thomas Bernard
e6f8d532c8
Read_list_of_drives(): use me_type_malloced to free() me_type
fixes a bug with OpenBSD
2018-10-17 16:07:32 +02:00
Thomas Bernard
69142724ef
drive list : Add icon for network drives. Add debug log
also add HDD icon for ufs and zfs
2018-10-17 16:05:15 +02:00
Thomas Bernard
226b726fc1 project/msvc: ignore *.db files 2018-10-06 15:29:50 +02:00
Thomas Bernard
c8d2851d63 Add SDL 2 support to tools/sdl_image_test/showimage.c 2018-09-21 21:49:58 +02:00
Thomas Bernard
18d35f5bf0 Win32+SDL : consider ALT as not pressed when gaining back keyboard focus
see https://pulkomandy.tk/projects/GrafX2/ticket/63
2018-09-21 09:17:50 +02:00
Thomas Bernard
c4159247c8 SDL2: fix color cycling 2018-09-18 14:36:07 +02:00
Thomas Bernard
d0864d5fbf win32: ignore 0xFF virtual keyboard code 2018-09-18 12:44:48 +02:00
Thomas Bernard
60b2a7d67b Win32: add some funky keys labels (Email key, etc.) 2018-09-18 12:44:05 +02:00
Thomas Bernard
77e53d3b18 Win32: better handling of AltGr key 2018-09-18 11:41:34 +02:00
Thomas Bernard
0408eb487e Win32: labels for '<>' and '\!§' keys 2018-09-18 11:34:51 +02:00
Thomas Bernard
3972d977a7
SDL2: fix name of keys which SDLK_ is based on scancode 2018-09-16 22:03:48 +02:00
Thomas Bernard
2c9b1b7bb1
X11: properly ignore Shift/ctrl/alt/win keystrokes alone 2018-09-16 22:02:03 +02:00
Thomas Bernard
de5877f54a
Show the "MENU" key
https://en.wikipedia.org/wiki/Menu_key
2018-09-16 21:59:43 +02:00
Thomas Bernard
5370670b10
Use different .cfg files depending on GUI API used
SDL1 => gfx2.cfg
SDL2 => gfx2-sdl2.cfg
Win32 => gfx2-win32.cfg
X11 => gfx2-x11.cfg

defaults to gfx2.cfg
2018-09-16 19:53:39 +02:00
Thomas Bernard
b4005cbcb3 Win32: fix window keys 2018-09-16 00:23:21 +02:00
Thomas Bernard
9f82984896 Fix Win32 keyboard input of CTRL/ALT/Shift keys
CTRL/ALT/SHIFT keys alone should be ignored

add WM_SYSKEYDOWN event which is called when ALT is pressed
2018-09-16 00:23:19 +02:00
Thomas Bernard
65c761345f fix: MSVC defines _DEBUG, not DEBUG 2018-09-16 00:23:13 +02:00
Thomas Bernard
051da9e354 add gfx2log.c/.h to MSVC project 2018-09-15 23:26:01 +02:00
Thomas Bernard
dc49ed4698
fix replacement of extension in unicode filename 2018-09-15 14:17:54 +02:00
Thomas Bernard
44f24b3508
Change the way we change to bookmarked directories
fixes http://pulkomandy.tk/projects/GrafX2/ticket/12
2018-09-15 13:59:52 +02:00
Thomas Bernard
c65f9f8903
Prepare_and_display_filelist() can optionnaly update filename 2018-09-15 12:18:14 +02:00
Thomas Bernard
12050cd068
update Find_file_in_fileselector() to return -1 when not found 2018-09-15 11:11:48 +02:00
Thomas Bernard
16799113fc
properly keep filename when changing extension in the SAVE file selector
unicode string was not restored
2018-09-14 20:43:37 +02:00
Thomas BERNARD
cafa261265 display libpng and recoil version in statistics 2018-09-14 18:09:49 +02:00
Thomas BERNARD
00cbe729b2 fix NO_X11 option support 2018-09-14 17:23:52 +02:00
Thomas BERNARD
1d1be59ec1 OS X: support building with NO_X11 option 2018-09-14 17:22:57 +02:00
Thomas BERNARD
7cf404904c X11: build when GenericEvent is not defined 2018-09-14 17:22:02 +02:00
Thomas Bernard
42c2b6af26 fix multiline titles
such as
    FILLED CIRCLES
     AND ELLIPSES

doc/html/grafx2_36.html

or
ADJUST OR TRANSFORM
    PICTURE

doc/html/grafx2_25.html
2018-09-06 17:54:43 +02:00
Thomas Bernard
6ae8d8153b Write Help as HTML files
specific binary to generate HTML doc : bin/generatedoc
see http://pulkomandy.tk/projects/GrafX2/ticket/8
2018-09-06 17:49:52 +02:00
Thomas Bernard
ee70156802 fix Key_name() for x11 2018-09-06 17:41:20 +02:00
Nic Soudée
0953bc1f9b Fix bug in -help video mode listing
The mode_index is being incremented by 12, but we are
only displaying 6 video modes per line. This results in
the "Available video modes" listing to ignore half of the
valid video modes.
2018-08-16 09:15:57 -04:00
Nic Soudée
78d99fd337 Move command line analysis down a bit
This is necessary so that the list of available video modes
is populated, making the -mode parameter work again.
2018-08-16 09:14:33 -04:00