Follow up fixes for JGRPP dirt rect handling

This commit is contained in:
dP
2023-03-30 15:00:46 +04:00
parent c70a7f9fc0
commit 6e61cf1561
3 changed files with 6 additions and 9 deletions
+3 -3
View File
@@ -1025,7 +1025,7 @@ NWidgetBase::NWidgetBase(WidgetType tp) : ZeroedMemoryAllocator()
void NWidgetBase::SetDirty(Window *w)
{
this->base_flags |= WBF_DIRTY;
w->flags |= WF_DIRTY;
w->flags |= WF_WIDGETS_DIRTY;
}
/**
@@ -2397,8 +2397,8 @@ void NWidgetViewport::UpdateViewportCoordinates(Window *w)
if (vp != nullptr) {
vp->left = w->left + this->pos_x;
vp->top = w->top + this->pos_y;
vp->width = this->current_x;
vp->height = this->current_y;
vp->width = w->IsShaded() ? 0 : this->current_x;
vp->height = w->IsShaded() ? 0 : this->current_y;
vp->virtual_width = ScaleByZoom(vp->width, vp->zoom);
vp->virtual_height = ScaleByZoom(vp->height, vp->zoom);