Clear screen to black on software renderer after it starts
This commit is contained in:
@@ -73,6 +73,12 @@ SoftwareRenderer::render()
|
|||||||
m_backingStore->flush(rect);
|
m_backingStore->flush(rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
SoftwareRenderer::exposeEvent(QExposeEvent* event)
|
||||||
|
{
|
||||||
|
render();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SoftwareRenderer::onBlit(int buf_idx, int x, int y, int w, int h)
|
SoftwareRenderer::onBlit(int buf_idx, int x, int y, int w, int h)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ public:
|
|||||||
void paintEvent(QPaintEvent *event) override;
|
void paintEvent(QPaintEvent *event) override;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void exposeEvent(QExposeEvent* 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:
|
public slots:
|
||||||
|
|||||||
Reference in New Issue
Block a user