Fix setOverlayOpacity setting the opacity of the cursor rect and map grid

This commit is contained in:
GriffinR 2022-08-02 18:53:05 -04:00
parent f8edaec838
commit d22aab9b10

View file

@ -26,9 +26,11 @@ void OverlayImage::render(QPainter *painter, int x, int y) {
void Overlay::renderItems(QPainter *painter) {
if (this->hidden) return;
qreal oldOpacity = painter->opacity();
painter->setOpacity(this->opacity);
for (auto item : this->items)
item->render(painter, this->x, this->y);
painter->setOpacity(oldOpacity);
}
void Overlay::clearItems() {