gammasoft71/Examples_wxWidgets

Low Resolution examples under macOS

tritao opened this issue · 1 comments

I only tested OpenGL example, but by default it provides very low resolution on Retina display.

Something like this needs to be added to CMake to fix it:

add_custom_target(NSPrincipalClass ALL plutil -replace NSPrincipalClass -string NSApplication ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.app/Contents/Info.plist DEPENDS ${PROJECT_NAME})
add_custom_target(NSHighResolutionCapable ALL plutil -replace NSHighResolutionCapable -bool true ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.app/Contents/Info.plist DEPENDS ${PROJECT_NAME})

Thank you for your contribution. I added theses two lines in the CMakeLists.txt file.