We were using wxwidgets 3.1.6 source and recently updated the source to 3.1.7. Internally we were using .PNG images all at 100% DPI and using wxBITMAP_PNG() to load the image from the resource file (.rc).
When using 3.1.6 source, the image at 100% DPI was auto scaling at higher DPI e.g. 150% DPI without using any wxBitmapBundle(). After we updated the source to 3.1.7, the image at 100% DPI doesn't auto scale to 150% DPI but shows the image at 100% DPI. Do we need to change or set any configuration parameter or define to ensure the auto scaling works in 3.1.7 source. This is happening in windows system.
In some thread comments, I found that I need to set the following in our resource file (.rc)
Code: Select all
#define wxUSE_DPI_AWARE_MANIFEST 2
#include "wx/msw/wx.rc"
#define wxUSE_RC_MANIFEST
Please help. Thanks.
Regards
Sree