Follow up fixes for JGRPP dirt rect handling
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user