A bit more clang-format

This commit is contained in:
Jasmine Iwanek
2022-11-19 08:49:04 -05:00
parent b04dd8cc8b
commit 3fe4f75108
223 changed files with 8047 additions and 7456 deletions

View File

@@ -9,29 +9,28 @@
#include "qt_renderercommon.hpp"
class SoftwareRenderer :
#ifdef __HAIKU__
public QWidget,
#else
public QRasterWindow,
#endif
public RendererCommon
{
#ifdef __HAIKU__
public QWidget,
#else
public QRasterWindow,
#endif
public RendererCommon {
Q_OBJECT
public:
explicit SoftwareRenderer(QWidget *parent = nullptr);
void paintEvent(QPaintEvent* event) override;
void paintEvent(QPaintEvent *event) override;
std::vector<std::tuple<uint8_t*, std::atomic_flag*>> getBuffers() override;
std::vector<std::tuple<uint8_t *, std::atomic_flag *>> getBuffers() override;
public slots:
void onBlit(int buf_idx, int x, int y, int w, int h);
protected:
std::array<std::unique_ptr<QImage>, 2> images;
int cur_image = -1;
int cur_image = -1;
void onPaint(QPaintDevice* device);
void onPaint(QPaintDevice *device);
void resizeEvent(QResizeEvent *event) override;
bool event(QEvent *event) override;
};