kicad/include/gal
John Beard 6f78bb6960 Add configuration of Hi-DPI canvas scaling in OpenGL
First, add automatic detection of toolkit DPI scaling options. For now, this
is, in order,

* Check the GDK_SCALE option under GTK+ (users can set this to force the scaling)
* Check the value from WX's GetContentScalingFactor(). This will start to work
  correctly from WX 3.1 and GTK+ 3.10.

Then, add a user-settable override in the main prefs panel, next to the icon
scaling. This is independent of the icon scaling options.

DPI handling is performed in a standalone class, so they can be shared between
the prefs UI and the OpenGL backend easily. Also means Cairo could use the same
interface in future.

Also adjust the OpenGL grid drawing code to use the computed scale factor,
which avoids over-thick grids in scaled environments (the user can manually
thicken the grid if wanted).

Fixes: lp:1797308
* https://bugs.launchpad.net/kicad/+bug/1797308

Cherry-pick of: 567bdd9b9 (master)
2019-03-25 15:16:18 +00:00
..
cairo gal: re-enable arc outline mode 2019-02-21 10:52:54 -08:00
opengl OpenGL: Create shaders for each GL 2019-02-25 09:31:42 -08:00
color4d.h colors: Add HSL conversion and tune colors 2019-02-11 22:08:41 -08:00
compositor.h Multiple improvements concerning colors, configuration handling and legacy features in pcbnew: 2017-08-04 16:06:57 +02:00
definitions.h cairo: Fix rotated oval pads 2019-02-18 09:44:28 -08:00
gal_display_options.h Add configuration of Hi-DPI canvas scaling in OpenGL 2019-03-25 15:16:18 +00:00
gal_print.h Decouple GAL printing interface and its Cairo-based implementation 2018-10-31 19:17:30 +01:00
graphics_abstraction_layer.h gal: re-enable arc outline mode 2019-02-21 10:52:54 -08:00
hidpi_gl_canvas.h Add configuration of Hi-DPI canvas scaling in OpenGL 2019-03-25 15:16:18 +00:00
stroke_font.h Modified STROKE_FONT::ComputeStringBoundaryLimits() to process multiline strings 2018-03-08 10:56:34 +01:00