mirror of https://github.com/snes9xgit/snes9x.git
OpaquePaintEvent.
This commit is contained in:
parent
744f69a264
commit
5e021b1abc
|
@ -21,7 +21,7 @@ EmuCanvasVulkan::EmuCanvasVulkan(EmuConfig *config, QWidget *parent, QWidget *ma
|
||||||
setAttribute(Qt::WA_NoSystemBackground, true);
|
setAttribute(Qt::WA_NoSystemBackground, true);
|
||||||
setAttribute(Qt::WA_NativeWindow, true);
|
setAttribute(Qt::WA_NativeWindow, true);
|
||||||
setAttribute(Qt::WA_PaintOnScreen, true);
|
setAttribute(Qt::WA_PaintOnScreen, true);
|
||||||
setAttribute(Qt::WA_OpaquePaintEvent);
|
setAttribute(Qt::WA_OpaquePaintEvent, true);
|
||||||
|
|
||||||
createWinId();
|
createWinId();
|
||||||
window = windowHandle();
|
window = windowHandle();
|
||||||
|
|
|
@ -134,6 +134,7 @@ bool Swapchain::create(unsigned int desired_num_swapchain_images, int new_width,
|
||||||
.setClipped(true)
|
.setClipped(true)
|
||||||
.setPresentMode(vsync ? vk::PresentModeKHR::eFifo : vk::PresentModeKHR::eImmediate)
|
.setPresentMode(vsync ? vk::PresentModeKHR::eFifo : vk::PresentModeKHR::eImmediate)
|
||||||
.setSurface(surface)
|
.setSurface(surface)
|
||||||
|
.setPreTransform(vk::SurfaceTransformFlagBitsKHR::eIdentity)
|
||||||
.setImageArrayLayers(1);
|
.setImageArrayLayers(1);
|
||||||
|
|
||||||
if (swapchain_object)
|
if (swapchain_object)
|
||||||
|
|
Loading…
Reference in New Issue