Browse Source
3D viewer: use hi-DPI settings for canvases
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/1823681pull/13/head
5 changed files with 95 additions and 21 deletions
-
373d-viewer/3d_cache/dialogs/panel_prev_model.cpp
-
53d-viewer/3d_cache/dialogs/panel_prev_model.h
-
553d-viewer/3d_viewer/eda_3d_viewer.cpp
-
143d-viewer/3d_viewer/eda_3d_viewer.h
-
5pcbnew/pcb_base_frame.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue