Do RGB correction only on Qt5

This commit is contained in:
Cacodemon345
2026-01-21 20:55:52 +06:00
committed by GitHub
parent 7a462af5d1
commit 6b014f6c87

View File

@@ -900,7 +900,11 @@ VulkanWindowRenderer::onBlit(int buf_idx, int x, int y, int w, int h)
strcat(path, fn);
QImage image = this->grab();
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
image.save(path, "png");
#else
image.rgbSwapped().save(path, "png");
#endif
monitors[r_monitor_index].mon_screenshots--;
}
if (monitors[r_monitor_index].mon_screenshots_clipboard) {