Camilla Löwy
621ece63c8
Round refresh rate instead of truncating
...
Fixes #1441 .
2019-03-04 17:31:14 +01:00
Camilla Löwy
52c7a4fc7f
Fix glfwGetGammaRamp error handling
...
This makes glfwGetGammaRamp return NULL on platform error as specified.
Related to #1387 .
2018-12-26 15:00:39 +01:00
Emmanuel Gil Peyrot
8d98a6e37d
Add a FreeMonitor platform API
...
This fixes the leak of a wl_output object everytime a monitor is freed.
2018-03-01 08:31:54 +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
Camilla Löwy
30489c5aa1
X11: Expose zero monitor for functional headless
...
Fixes #1147 .
2017-11-28 14:37:49 +01: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
66b16f1fc1
X11: Add validation of RandR gamma ramp size
2017-04-05 17:53:00 +02:00
Camilla Löwy
6abb5cbcbb
Formatting
2017-03-26 16:46:17 +02:00
Camilla Löwy
5fe4dfb511
X11: Narrow criteria for disabling RandR
...
Fixes #972 .
2017-03-26 16:46:17 +02:00
Camilla Löwy
980f955f6c
Fix undefined behavior
...
Fixes #950 .
2017-02-16 05:23:10 +01:00
Camilla Löwy
04f559e28d
Restructure monitor enumeration
...
This way is both kinder on event-based enumeration and less work to
unwind allocations for when properly implementing GLFW_OUT_OF_MEMORY.
2017-01-02 06:03:02 +01:00
Camilla Löwy
e649708cb2
X11: Make more use of XRRGetScreenResourcesCurrent
...
Closes #877 .
2016-12-18 15:49:17 +01:00
Camilla Löwy
6eae8f22dc
X11: Load Xxf86vm at run-time
2016-12-11 00:05:15 +01:00
Camilla Löwy
f4d0c83181
Paperwork done
2016-11-30 14:00:41 +01:00
Camilla Berglund
53fafad915
Start 3.3
2016-08-18 23:55:49 +02:00
Camilla Berglund
757eea2779
Update email address
2016-06-01 21:25:20 +02:00
Camilla Berglund
6a8e169001
Update copyright notice year
2016-06-01 21:25:19 +02:00
Camilla Berglund
12b6c56903
Add suffixes to platform specific helper functions
...
Also merge win32_tls.h into win32_platform.h.
2015-12-13 14:50:59 +01:00
Camilla Berglund
0eccf75f65
Replace GL booleans with public macros
2015-10-13 00:46:02 +02:00
Camilla Berglund
95a07f3340
Start 3.2
2015-10-12 21:59:49 +02:00
Eric Larson
ad1739c63f
Fixed invalid pointer when Xrandr is unavailable.
...
Fixes #497 .
Closes #498 .
2015-04-14 21:11:27 +02:00
Camilla Berglund
b415b9aacf
Fixed harmless argument reversal.
2015-04-14 19:05:58 +02:00
Camilla Berglund
49cf82a0ac
Cleaned up monitor and video mode enumeration.
2015-04-09 17:40:27 +02:00
Camilla Berglund
5f21e213df
Made Xxf86vm optional at compile-time.
2015-02-16 15:40:41 +01:00
Camilla Berglund
bb338a2b9c
Fixed monitor size not corrected for rotation.
...
Fixes #413 .
2015-01-08 04:01:40 +01:00
Camilla Berglund
49ec306a0a
Added glfwGet*Adapter to native API.
2014-10-29 02:55:02 +01:00
Camilla Berglund
468714cab9
Unified video mode enumeration.
2014-09-22 19:25:05 +02:00
Camilla Berglund
4918514eaf
Added support for _NET_WM_FULLSCREEN_MONITORS.
...
This allows EWMH full screen windows to correctly cover monitors that
overlap other monitors, such as an Oculus Rift mapped onto a section of
a larger monitor.
Fixes #175 .
2014-09-22 13:31:59 +02:00
Camilla Berglund
58c390991c
Made glfwGetX11Monitor return output, not CRTC.
2014-09-17 12:45:51 +02:00
Camilla Berglund
1b6d8a6ed6
Enabled enumeration of mirroring displays.
...
This exposes all monitors in every mirroring group, which is needed for
robust detection of an Oculus Rift.
2014-09-16 18:27:33 +02:00
Camilla Berglund
4ae6eae58d
Made queries use XRRGetScreenResourcesCurrent.
...
Fixes #347 .
Closes #351 .
2014-09-10 11:50:42 +02:00
Camilla Berglund
a5281df501
Moved RandR gamma probe to init.
2014-08-18 12:58:02 +02:00
Camilla Berglund
59d1aa52f2
Merged gamma files into monitor files.
2014-08-18 12:31:48 +02:00
Camilla Berglund
87490316c8
Fixed video modes not being rotated to match CRTC.
...
Fixes #284 .
2014-08-11 19:48:27 +02:00
Camilla Berglund
c1ed0b2d5b
Removed duplicate fallback.
2014-04-08 13:25:20 +02:00
Camilla Berglund
87dd7b89f5
Video mode detection cleanup.
2014-03-10 12:36:23 +01:00
Camilla Berglund
bf389f7183
Cleaned up RandR video mode handling.
2014-02-13 14:38:46 +01:00
Camilla Berglund
dd02b96c94
Added flag for non-functional RandR monitor path.
2014-01-22 20:13:19 +01:00
Camilla Berglund
611006af18
Updated API version in comment headers.
2014-01-22 01:32:00 +01:00
Camilla Berglund
0548c713e8
Renamed monitor helper functions for clarity.
2014-01-21 15:23:11 +01:00
Camilla Berglund
16eb97dbc3
Added native monitor handle access to native API.
2014-01-13 23:05:01 +01:00
Camilla Berglund
a79b93f5bc
Avoid X11 video mode setting if modes match.
...
This matches the behavior of the Windows port.
2013-11-14 12:59:08 +01:00
Camilla Berglund
261f290abf
Fixed original video mode being overwritten.
2013-08-06 19:52:09 +02:00
Camilla Berglund
3cfc400cf9
Simplified source file comment headers.
2013-07-30 14:46:52 +02:00
Camilla Berglund
7a03ca8dbc
Removed superflous casts of allocated memory.
2013-07-04 14:54:07 +02:00
Camilla Berglund
209a470a5f
Replaced all uses of malloc with calloc.
2013-07-04 14:20:14 +02:00
Camilla Berglund
35c386b7bb
Ignore CRTCs with no outputs.
2013-06-12 19:40:55 +02:00
Camilla Berglund
68b7ea86d2
Monitor enumeration fixes.
2013-06-09 13:10:21 +02:00
Camilla Berglund
8c069f3753
Fixed use of wrong variable.
2013-06-09 12:18:07 +02:00
Camilla Berglund
2cd34386bc
Added back refresh rate window hint.
2013-05-30 20:42:59 +02:00