Camilla Löwy
e2fa82ffbb
Cleanup
...
Related to #1431 .
2019-02-13 23:21:05 +01:00
Max Risuhin
cf79f06257
Win32: Fix standard cursors not being DPI aware
...
Closes #1431 .
2019-02-11 19:19:06 +01:00
Camilla Löwy
d5ab3e919a
Cleanup
...
Replace client area with content area.
2019-01-25 12:46:46 +01:00
iamCaveLamp
a46104ee69
Removed duplicates of centerCursor function
2019-01-22 20:17:35 +01:00
Camilla Löwy
1635fe2826
Cleanup
...
Put the non-client painting related message cases with the client ones
so that they can be happy together.
Related to #1383 .
2018-12-26 15:22:20 +01:00
Aaron Loucks
9ac9d7b85a
Win32: Disable non-client painting if undecorated
...
Fixes an issue where a small title bar and window caption
buttons were being painted after restoring a minimized
undecorated window.
Closes #1383 .
2018-12-26 15:00:39 +01:00
Camilla Löwy
e779280802
Win32: Fix invalid calls to GetDpiForWindow
...
The check for Windows 10 Anniversary Edition or later was not always
performed before calling GetDpiForWindow.
Fixes #1335 .
Closes #1363 .
2018-10-22 00:51:08 +02:00
Camilla Löwy
089ea9af22
Add GLFW_SCALE_TO_MONITOR
...
This adds the GLFW_SCALE_TO_MONITOR window hint for automatically
resizing the content area of a window to the requested size times the
monitor content scale each time it is placed on a new monitor. This
only applies to windowed mode windows and includes the initial placement
at window creation.
This hint only has an effect on platforms where screen coordinates and
pixels always map 1:1 such as Windows and X11. Platforms like macOS
instead change the resolution of the framebuffer independently of the
window size.
Related to #676 .
Related to #1115 .
2018-09-03 23:12:39 +02:00
Camilla Löwy
5294439595
Win32: Add support for Per-Monitor V2 awareness
...
This adds basic support for the Per-Monitor V2 level of DPI awareness
in Windows 10, which allows for automatic DPI scaling of window
decorations.
This commit does not include resizing the window content area to match
the new window content scale.
Related to #1115 .
Fixes #1294 .
2018-09-03 23:12:39 +02:00
Camilla Löwy
a67d8afbd4
Win32: Clean up DWM detection
2018-08-24 15:06:39 +02:00
Camilla Löwy
d4cbe451fc
Win32: Clean up cursor shape translation
2018-08-24 15:06:39 +02:00
Camilla Löwy
f82a8f09eb
Win32: Disable mouse trails for full screen
...
When mouse trails are enabled, the cursor becomes invisible when the
OpenGL ICD detects a full screen window and switches to page flipping.
Mouse trails are now disabled as long as any full screen windows are
visible.
Fixes #1263 .
2018-08-02 00:01:26 +02:00
Camilla Löwy
50eccd298a
Fix cursor mode application for unfocused windows
...
Fixes #1239 .
Fixes #1247 .
2018-04-25 21:49:26 +02:00
Camilla Löwy
58cc4b2c5c
Move full screen cursor centering to shared code
2018-02-07 16:47:00 +01:00
Camilla Löwy
d10463ac91
Win32: Fix extra resize event during mode switch
...
The switch to full screen is now done with a single call to
SetWindowPos.
2018-02-07 16:46:59 +01:00
Camilla Löwy
1d75b205cb
Cleanup
...
Allow window creation despite video mode setting failure.
Video mode setting failure is ignored the rest of the time and the
desired video mode has never been a hard constraint anyway.
2018-02-07 16:46:58 +01:00
ocornut
20b12204af
Win32: Fix GLFW_FOCUSED hint being ignored
...
The window was activated by _glfwPlatformShowWindow, causing the
GLFW_FOCUSED window hint to be ignored when set to false.
Fixes #1179 .
Closes #1180 .
2018-01-09 20:36:13 +01:00
Camilla Löwy
ee9dffcd66
Add GLFW_HOVERED for polling cursor hover state
...
This window attribute corresponds to the cursor enter/leave callback.
Fixes #1166 .
2018-01-09 18:02:52 +01:00
Camilla Löwy
370eac3c48
Add glfwSetWindowContentScaleCallback
...
Related to #677 .
Related to #1115 .
2018-01-09 18:00:22 +01:00
Camilla Löwy
0e8c4ea7ce
Add lock key modifier bits input mode
...
This adds the GLFW_MOD_CAPS_LOCK and GLFW_MOD_NUM_LOCK modifier bits.
Set the GLFW_LOCK_KEY_MODS input mode to enable these for all callbacks
that receive modifier bits.
Fixes #946 .
2017-12-06 18:01:34 +01:00
Camilla Löwy
7c87948eaf
Win32: Fix accidentally working bit tests
...
Good grief.
2017-11-28 19:59:59 +01:00
Camilla Löwy
d630684654
Win32: Remove double resize of full screen window
...
Related to #1085 .
2017-11-16 11:56:03 +01:00
Camilla Löwy
11e47f08b1
Add glfwGetWindowOpacity and glfwSetWindowOpacity
...
This adds support for setting the opacity of the whole window, including
any decorations.
Fixes #1089 .
2017-11-15 15:46:01 +01:00
Camilla Löwy
31cbb20ba2
Deprecate window parameter of clipboard functions
2017-11-10 02:52:16 +01:00
Camilla Löwy
80d181f12d
Win32: Fix maximization of undecorated windows
...
Fixes #899 .
2017-10-31 15:47:01 +01:00
Camilla Löwy
bf09dba95b
Cleanup
2017-10-26 18:05:56 +02:00
Camilla Löwy
16bf872117
Add content scale queries
...
This adds glfwGetWindowContentScale and glfwGetMonitorContentScale for
querying the recommended drawing scale factor for DPI-aware rendering.
Parts of this patch are based on code by @ferreiradaselva.
Fixes #235 .
Fixes #439 .
Fixes #677 .
Fixes #845 .
Fixes #898 .
2017-10-26 17:26:36 +02:00
Camilla Löwy
5d0d30db38
Cleanup
2017-09-28 17:32:15 +02:00
Camilla Löwy
32e78aeb2e
Add GLFW_TRANSPARENT attribute and documentation
...
This completes support for window framebuffer transparency on Windows,
macOS and X11. Note that the hint/attribute may be renamed before
release to clarify its relationship to GLFW_OPACITY.
Fixes #197 .
Closes #1079 .
Related to #663 .
Related to #715 .
Related to #723 .
Related to #1078 .
2017-09-27 21:54:04 +02:00
Camilla Löwy
25b7eba4a0
Win32: Clean up dynamic loading and version checks
2017-09-27 21:33:03 +02:00
Camilla Löwy
e3be6b8ae0
Cleanup
...
Break up some overly long lines.
2017-09-17 15:14:22 +02:00
Camilla Löwy
f8668c5a9f
Win32: Fix key names not matching other platforms
...
This brings printable key names more in line with the results provided
on other platforms.
Fixes #943 .
2017-09-13 17:55:51 +02:00
Camilla Löwy
a368d89c94
Win32: Fix disabled cursor mode vs caption buttons
...
This postpones disabling the cursor until the user is done interacting
with a caption button.
Related to #650 .
Fixes #1071 .
2017-09-08 16:18:15 +02:00
Camilla Löwy
d8551b73f6
Cleanup
2017-08-28 18:31:14 +02:00
Camilla Löwy
82284b86eb
Cleanup
...
Thanks to glfwGetKeyScancode we can now pass only a scancode to the
platform layer for glfwGetKeyName.
2017-07-13 01:26:06 +02:00
Camilla Löwy
2fa90ae19f
Win32: Fix capture logic ignoring last mouse button
2017-07-09 18:37:24 +02:00
Felipe Ferreira da Silva
412eb6a611
Add glfwRequestWindowAttention
...
Related to #988 .
2017-05-11 13:36:39 +02:00
Camilla Löwy
21355e31db
Cleanup
2017-03-14 20:39:18 +01:00
Camilla Löwy
97dbd8b63b
Win32: Fix monitor event emission
...
Fixes #784 .
2017-03-14 19:21:57 +01:00
Camilla Löwy
e9560ef021
Add GLFW_OSMESA_CONTEXT_API
...
This allows the creation of OpenGL contexts via OSMesa on existing
platforms. It does not add a compile- or link-time dependency on
OSMesa.
Fixes #281 .
2017-02-28 20:38:10 +01:00
Camilla Löwy
a44f2c0e65
Win32: Fix VC++ warning
2017-02-28 00:07:37 +01:00
Camilla Löwy
918b4e81d2
Win32: Move to WM_INPUT for disabled cursor motion
...
Related to #125 .
2017-02-26 18:48:03 +01:00
Camilla Löwy
dd96d0ac93
Win32: Fix mouse button messages lost by capture
...
Fixes #954 .
2017-02-26 18:48:02 +01:00
Camilla Löwy
355b46e6c5
Win32: Fix screensaver and blanking prevention
...
On Vista and later, Handling WM_SYSCOMMAND is not enough to prevent
password protected screensavers or monitor blanking.
Fixes #851 .
2017-02-10 02:28:55 +01:00
Camilla Löwy
366b90be1a
Documentation work
2017-02-10 01:55:03 +01:00
Camilla Löwy
5a74b5008d
Cleanup
...
Related to #842 .
2017-02-06 15:16:27 +01:00
Liam Middlebrook
72ac5badb0
Add GLFW_CENTER_CURSOR
...
Adds a hint for controlling whether the cursor is centered over newly
created full screen windows.
Fixes #749 .
Closes #842 .
2017-02-06 15:16:26 +01:00
Camilla Löwy
43c1910453
Win32: Cleanup
2017-01-29 19:50:41 +01:00
Camilla Löwy
f3e20ca437
Pass scancode with synthetic key release events
2017-01-29 16:44:38 +01:00
Camilla Löwy
c28778e28c
Win32: Improve platform error messages
...
Related to #733 .
2017-01-20 01:35:24 +01:00