implemented fullscreen stretch modes

This commit is contained in:
Joakim L. Gilje
2021-12-07 13:47:42 +01:00
parent 2d9020070f
commit 61a2cf986b
10 changed files with 201 additions and 43 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include <QRect>
#include <QImage>
class QWidget;
class RendererCommon
{
public:
RendererCommon();
void onResize(int width, int height);
protected:
void onPaint(QPaintDevice* device);
QImage image;
QRect source, destination;
};