WindowVX: Fix move() not setting the correct dirty flags

This commit is contained in:
Jonas Kulla 2016-07-27 12:03:45 +02:00
parent e98c2e0535
commit d4e09f55bd
1 changed files with 7 additions and 2 deletions

View File

@ -852,10 +852,15 @@ void WindowVX::move(int x, int y, int width, int height)
const Vec2i size(std::max(0, width), std::max(0, height));
if (p->geo.w != size.x || p->geo.h != size.y)
if (p->geo.size() != size)
{
p->base.vertDirty = true;
p->base.texSizeDirty = true;
p->clipRectDirty = true;
p->ctrlVertDirty = true;
}
p->geo = IntRect(x, y, size.x, size.y);
p->geo = IntRect(Vec2i(x, y), size);
p->updateBaseQuad();
}