Document that wxGLCanvas now uses physical pixels

Instruct people to use GetContentScaleFactor() to convert between
logical coordinates used by wxWindow and physical ones used by
wxGLCanvas.

See https://github.com/wxWidgets/wxWidgets/pull/1485
This commit is contained in:
Vadim Zeitlin
2019-10-08 02:18:32 +02:00
parent f5d02e6808
commit 9102da27ec
2 changed files with 14 additions and 0 deletions

View File

@@ -78,6 +78,11 @@ Changes in behaviour not resulting in compilation errors
previous behaviour in wxMSW, when these events were always generated in this
case. Please add wxTE_PROCESS_ENTER style if you relied on the old behaviour.
- wxGLCanvas now uses physical pixels on high DPI displays under platforms
where they're different from logical ones (wxGTK3, wxOSX). Multiply logical
coordinates, e.g. returned by wxWindow::GetSize() by GetContentScaleFactor()
before using them with OpenGL functions.
Changes in behaviour which may result in build errors
-----------------------------------------------------