Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 333 Lines • ▼ Show 20 Line(s) | |||||
334 | fmt.setColorSpace(QSurfaceFormat::scRGBColorSpace); | 334 | fmt.setColorSpace(QSurfaceFormat::scRGBColorSpace); | ||
335 | fmt.setColorSpace(QSurfaceFormat::bt2020PQColorSpace); | 335 | fmt.setColorSpace(QSurfaceFormat::bt2020PQColorSpace); | ||
336 | } | 336 | } | ||
337 | " | 337 | " | ||
338 | HAVE_HDR | 338 | HAVE_HDR | ||
339 | ) | 339 | ) | ||
340 | configure_file(config-hdr.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-hdr.h) | 340 | configure_file(config-hdr.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-hdr.h) | ||
341 | 341 | | |||
342 | CHECK_CXX_SOURCE_COMPILES(" | ||||
343 | #include <QGuiApplication> | ||||
344 | int main(int argc, char *argv[]) { | ||||
345 | QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round); | ||||
346 | QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::RoundPreferFloor); | ||||
347 | QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); | ||||
348 | } | ||||
349 | " | ||||
350 | HAVE_HIGH_DPI_SCALE_FACTOR_ROUNDING_POLICY | ||||
351 | ) | ||||
352 | configure_file(config-high-dpi-scale-factor-rounding-policy.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-high-dpi-scale-factor-rounding-policy.h) | ||||
353 | | ||||
342 | if (WIN32) | 354 | if (WIN32) | ||
343 | CHECK_CXX_SOURCE_COMPILES(" | 355 | CHECK_CXX_SOURCE_COMPILES(" | ||
344 | #include <QtPlatformHeaders/QWindowsWindowFunctions> | 356 | #include <QtPlatformHeaders/QWindowsWindowFunctions> | ||
345 | int main(int argc, char *argv[]) { | 357 | int main(int argc, char *argv[]) { | ||
346 | QWindowsWindowFunctions::setHasBorderInFullScreenDefault(true); | 358 | QWindowsWindowFunctions::setHasBorderInFullScreenDefault(true); | ||
347 | } | 359 | } | ||
348 | " | 360 | " | ||
349 | HAVE_SET_HAS_BORDER_IN_FULL_SCREEN_DEFAULT | 361 | HAVE_SET_HAS_BORDER_IN_FULL_SCREEN_DEFAULT | ||
▲ Show 20 Lines • Show All 477 Lines • Show Last 20 Lines |