2194 Commits

Author SHA1 Message Date
Thomas Bernard
f3ba6d3205
Add ability to save C64 FLI pictures for a 1 layer image
add function Save_C64_fli_monolayer()

The algorithm used is :
- first choose the lowest value from all possible background colors for each line
- first the lowest value from the possible colors for color RAM
- encode bitmap and screen RAMs
2018-11-10 21:32:52 +01:00
Thomas Bernard
3720e45246
Improve doxygen comments of C64 functions 2018-11-10 21:32:52 +01:00
Thomas Bernard
21d40948b2
Open_window() : limit to 320x200 2018-11-10 19:20:10 +01:00
Thomas Bernard
0c6add67f5
Open_window(): Fix crash when trying to open window larger than screen
it resulted in negative window position...
2018-11-10 17:20:52 +01:00
Thomas Bernard
ea1a58d713
WIN32: Log/comments a lot more WM_* message types 2018-11-10 16:00:58 +01:00
Thomas Bernard
a443d30aa4
Win32: fix position saving + enforce minimum 320x200 resolution
fixes 24a18c2f34ca5f13705158826528340d21e55298
(do nothing when WM_MOVE is received)

Handle WM_GETMINMAXINFO
2018-11-10 16:00:57 +01:00
Jordan Christiansen
c40a2ad470 Prevent "Restore lasso brush" from clearing the brush
Fixes Trac bug #16
2018-11-09 18:14:00 +01:00
Thomas Bernard
addc399b7f win32: handle more window manager events
useful for debug
2018-11-09 12:50:50 +01:00
Thomas Bernard
24a18c2f34 Win32: fix window position saving
use WM_WINDOWPOSCHANGED instead of WM_MOVE
2018-11-09 12:50:49 +01:00
Thomas Bernard
82cbb212dd update .gitignore files 2018-11-09 12:50:47 +01:00
Thomas Bernard
50f3b99106 store unicode filename for brush 2018-11-09 12:50:45 +01:00
Thomas Bernard
907da28911 Win32: fix Open_file_write() and Open_file_write_with_alternate_ext() when no unicode filename is supplied 2018-11-09 12:50:44 +01:00
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