From aa2780b4729ada4d4b8f39113145731e7176c277 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 20 Oct 2021 16:19:41 +0100 Subject: [PATCH] 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. --- samples/sample.rc | 3 +++ samples/toolbar/toolbar.rc | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/sample.rc b/samples/sample.rc index b214b99b23..8d8636a72d 100644 --- a/samples/sample.rc +++ b/samples/sample.rc @@ -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" diff --git a/samples/toolbar/toolbar.rc b/samples/toolbar/toolbar.rc index 8eac324424..52bbc440c4 100644 --- a/samples/toolbar/toolbar.rc +++ b/samples/toolbar/toolbar.rc @@ -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"