38 Commits

Author SHA1 Message Date
Thomas Bernard
2d645edbc0 win32: save the "not maximized" window size
also fix the window start up position

see http://pulkomandy.tk/projects/GrafX2/ticket/102
2019-05-21 20:45:21 +02:00
Thomas Bernard
05175292a6
several fixes for WIN32
better handle minimize/maximize
http://pulkomandy.tk/projects/GrafX2/ticket/102
2019-05-07 17:25:18 +02:00
Thomas Bernard
a633bd88dd
rewrite Move_cursor_with_constraints() to clip negative coordinates
also introduce Handle_mouse_btn_change() so we don't bother to
check everything when only the mouse button state changed
2019-02-08 10:32:48 +01:00
Thomas Bernard
394f78ac8a
Win32: process Horizontal wheel event 2019-02-05 00:26:09 +01:00
Thomas Bernard
b184a75c9e
win32 and SDL2: capture the mouse when the button is pressed 2019-02-05 00:25:59 +01:00
Thomas Bernard
4c7c5bde77
SDL2, win32: properly handle negative mouse coordinates 2019-02-05 00:25:59 +01:00
Thomas Bernard
206c67e77c
move Set_mouse_position() to sdlscreen.c / win32screen.c / etc. 2019-02-05 00:25:59 +01:00
Thomas Bernard
981bcd37b4
Win32: redraw whole window when called with 0 width and height 2019-02-01 19:46:38 +01:00
Thomas Bernard
79621855f9
Win32: fix non closing window when clicking the X
it wasn't getting out of the event polling loop
2019-01-31 22:52:53 +01:00
Thomas Bernard
24b197e6a6 Win32_Repaint(): only redraw the required rectangle 2019-01-22 10:04:58 +01:00
Thomas Bernard
e268753438
Win32: fix Update_status_line() 2019-01-22 09:31:10 +01:00
Thomas Bernard
8ebe6a8867
win32 : handling of mouse keyboard emulation + panning 2019-01-20 22:49:29 +01:00
Thomas Bernard
b706566f57 WIN32: get Unicode filename of Dropped files 2018-12-18 17:52:28 +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
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
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
d0864d5fbf win32: ignore 0xFF virtual keyboard code 2018-09-18 12:44:48 +02:00
Thomas Bernard
77e53d3b18 Win32: better handling of AltGr key 2018-09-18 11:41:34 +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
74cc365e8c Fix win32 Update_rect() 2018-07-02 11:38:51 +02:00
Thomas Bernard
131e0f9630 win32 implementation of Update_status_line() 2018-07-02 11:38:51 +02:00
Thomas Bernard
099301721e Properly set icon for SDL2. Also use the .png which is better resolution 2018-07-02 11:38:51 +02:00
Thomas Bernard
01c6a9cd09 Fix Drop file with SDL/Win32. implement it with plain win32
we have to handle both unicode and non unicode builds
2018-07-02 11:38:51 +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
26d0b8339f Win32: Fix Screen_FillRect() : add clipping 2018-07-02 11:38:51 +02:00
Thomas Bernard
9f9c21de21 backup position of windows (Win32 API) 2018-07-02 11:38:51 +02:00
Thomas Bernard
6b6b17a2fb correctly handle WM_CLOSE 2018-07-02 11:38:51 +02:00
Thomas Bernard
161357d331 Win32: support Key modifiers and mouse wheel 2018-07-02 11:38:51 +02:00
Thomas Bernard
c3aa989a42 ignore WM_NCHITTEST and WM_ERASEBKGND 2018-07-02 11:38:51 +02:00
Thomas Bernard
486a0a09d4 support Fullscreen with Win32 API 2018-07-02 11:38:51 +02:00
Thomas Bernard
48ee0c06d2 allow win32 window to be resized 2018-07-02 11:38:51 +02:00
Thomas Bernard
4b28894bb8 cross compilation of Win32 version (using win32 API) 2018-07-02 11:38:51 +02:00
Thomas Bernard
deac8b83cf keyboard support for windows 2018-07-02 11:38:51 +02:00
Thomas Bernard
9ac4267468 Working win32 API implementation with mouse
(no keyboard yet)
2018-07-02 11:38:51 +02:00
Thomas Bernard
b5e75d77b1 add skeleton of win32 implementation 2018-07-02 11:38:51 +02:00