TransparentBufferedWindow fix
This commit is contained in:
+7
-2
@@ -82,8 +82,13 @@ class TransparentBufferedWindow: public BufferedWindow<T>
|
|||||||
|
|
||||||
if (this->paintUpdateNeeded) {
|
if (this->paintUpdateNeeded) {
|
||||||
this->paintUpdate(dc);
|
this->paintUpdate(dc);
|
||||||
this->bitmap->drawBitmap(0, 0, dc, dc->getOffsetX(), dc->getOffsetY());
|
// we can only store the bitmap if fully drawn
|
||||||
this->paintUpdateNeeded = false;
|
coord_t xmin, xmax, ymin, ymax;
|
||||||
|
dc->getClippingRect(xmin, xmax, ymin, ymax);
|
||||||
|
if (xmax - xmin >= this->width() && ymax - ymin >= this->height()) {
|
||||||
|
this->bitmap->drawBitmap(0, 0, dc, dc->getOffsetX(), dc->getOffsetY());
|
||||||
|
this->paintUpdateNeeded = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
dc->drawBitmap(0, 0, this->bitmap);
|
dc->drawBitmap(0, 0, this->bitmap);
|
||||||
|
|||||||
Reference in New Issue
Block a user