qt: Add option to apply fullscreen stretching modes when maximized

This commit is contained in:
Cacodemon345
2022-08-10 01:27:54 +06:00
parent f70102c529
commit dd23397854
16 changed files with 69 additions and 4 deletions

View File

@@ -836,9 +836,11 @@ bool VulkanWindowRenderer::event(QEvent *event)
void VulkanWindowRenderer::onBlit(int buf_idx, int x, int y, int w, int h)
{
auto origSource = source;
source.setRect(x, y, w, h);
if (isExposed()) requestUpdate();
buf_usage[0].clear();
if (origSource != source) onResize(this->width(), this->height());
}
uint32_t VulkanWindowRenderer::getBytesPerRow()