OpaquePaintEvent.

This commit is contained in:
BearOso 2023-07-03 17:42:45 -05:00
parent 744f69a264
commit 5e021b1abc
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ EmuCanvasVulkan::EmuCanvasVulkan(EmuConfig *config, QWidget *parent, QWidget *ma
setAttribute(Qt::WA_NoSystemBackground, true);
setAttribute(Qt::WA_NativeWindow, true);
setAttribute(Qt::WA_PaintOnScreen, true);
setAttribute(Qt::WA_OpaquePaintEvent);
setAttribute(Qt::WA_OpaquePaintEvent, true);
createWinId();
window = windowHandle();

View File

@ -134,6 +134,7 @@ bool Swapchain::create(unsigned int desired_num_swapchain_images, int new_width,
.setClipped(true)
.setPresentMode(vsync ? vk::PresentModeKHR::eFifo : vk::PresentModeKHR::eImmediate)
.setSurface(surface)
.setPreTransform(vk::SurfaceTransformFlagBitsKHR::eIdentity)
.setImageArrayLayers(1);
if (swapchain_object)