XRandR Display Extension

Reporter: RobertBColton  |  Status: closed  |  Last Modified: January 13, 2019, 12:33:04 AM

Taking some steps here to address part of #1064 and implement the display functions for xlib using the XRandR extension. I did this because it is pretty much standard and Hugar specifically requested display_set_size and he told me he'd be ok if I use that. I followed this guide from the OpenGL wiki to write the code:
https://www.khronos.org/opengl/wiki/Programming_OpenGL_in_Linux:_Changing_the_Screen_Resolution
I followed this Linux documentation as well:
https://linux.die.net/man/3/xrrsetscreenconfig

Depth switching is not provided by XRandR, so display_set_colordepth is still not implemented and display_test_all/display_set_all will ignore that same parameter.

This adds libxrandr-dev (-lXrandr) as a dependency, but only when the user wants to use this extension.

codecov[bot]  
>Codecov Report

Merging #1466 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1466   +/-   ##
=======================================
  Coverage   17.42%   17.42%           
=======================================
  Files         165      165           
  Lines       17122    17122           
=======================================
  Hits         2983     2983           
  Misses      14139    14139

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad55296...d295fa0. Read the comment docs.

RobertBColton  

@JoshDreamland this one is ready to go when you get a chance, thanks!
Please sign in to post comments, or you can view this issue on GitHub.