Set wxUSE_DPI_AWARE_MANIFEST=2 for all samples, not just toolbar

This is required for high resolution bitmaps support and it will be
needed in other samples too, so use it for all of them.

This probably will result in some problems due to remaining bugs with
high DPI support, but it should make them more noticeable and so should
help with finding and fixing them.
This commit is contained in:
Vadim Zeitlin
2021-10-20 16:19:41 +01:00
parent ec975c70cc
commit aa2780b472
2 changed files with 3 additions and 3 deletions

View File

@@ -25,6 +25,9 @@ sample ICON "sample.ico"
// for more information)
#define wxUSE_NO_MANIFEST 0
// To get DPI change events, we need to opt in into per monitor DPI support.
#define wxUSE_DPI_AWARE_MANIFEST 2
// this is not always needed but doesn't hurt (except making the executable
// very slightly larger): this file contains the standard icons, cursors, ...
#include "wx/msw/wx.rc"

View File

@@ -1,6 +1,3 @@
// To get DPI change events, we need to opt in into per monitor DPI support.
#define wxUSE_DPI_AWARE_MANIFEST 2
#include "../sample.rc"
new RCDATA "bitmaps/new.png"