kicad/3d-viewer
John Beard 4a201df556 3D viewer: use hi-DPI settings for canvases
The 3D viewer also uses OpenGL, so it also needs to
adjust based on DPI scale factors.

This patch moves the 3D viewer common config code solely
within the 3D viewer, and adds handling of the DPI scale. This
also avoids duplicated logic in PCB_BASE_FRAME::CommonSettingsChanged.

For now, as EDA_3D_VIEWER is not included in the Kiway settings
dispatch, still manually invoke the settings update from
PCB_BASE_FRAME.

The PANEL_3D_PREV gets a similar function to read the config, but
it doesn't have a listener for the update, so it's set just once
at dialog init, just like the existing pan settings.

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

(cherry picked from commit 124dd5e59a)
2019-04-08 14:30:26 +01:00
..
3d_cache 3D viewer: use hi-DPI settings for canvases 2019-04-08 14:30:26 +01:00
3d_canvas Restore 3D canvas to full size on Retina displays. 2019-02-19 16:18:11 -07:00
3d_model_viewer Create HIDPI_GL_CANVAS wrapper for transparent wxGLCanvas HiDPI/Retina support. Enable HiDPI/Retina for 3d-viewer. 2017-12-18 16:26:01 +01:00
3d_rendering 3D viewer: Fix: board outlines ignored in 3D for triangular board shapes 2019-02-02 17:59:53 +01:00
3d_viewer 3D viewer: use hi-DPI settings for canvases 2019-04-08 14:30:26 +01:00
common_ogl Replace DIM() macro 2019-01-06 08:43:12 -08:00
3d_enums.h 3D viewer: Remove outdated option "show holes in zones" that was no longer used in opengl mode, and useless in ray tracing 2017-12-28 11:01:10 +01:00
3d_fastmath.cpp 3D Viewer: complete refactor of the 3D viewer. 2016-07-19 13:35:25 -04:00
3d_fastmath.h 3D Viewer: complete refactor of the 3D viewer. 2016-07-19 13:35:25 -04:00
3d_math.cpp Removed all exception specifiers since deprecated. 2017-06-12 13:54:55 -04:00
3d_math.h (forget to staged modified files) 2016-10-09 11:33:53 -04:00
3d_plugin_dir.h.in Use absolute path CMAKE_INSTALL_FULL_LIBDIR for 3d viewer PLUGINDIR 2018-12-11 14:28:01 -05:00
3d_viewer.h 3D Viewer: complete refactor of the 3D viewer. 2016-07-19 13:35:25 -04:00
3d_viewer_id.h 3D Viewer: disable ray tracing for OpenGL less than 2.1. 2019-01-19 08:03:09 -05:00
CMakeLists.txt Build: libpolygon provides its own includes 2019-02-04 19:29:31 -08:00
credits.txt 3D Viewer: complete refactor of the 3D viewer. 2016-07-19 13:35:25 -04:00