mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Fix WindowVX
base quad sometimes not being updated after libretro save state deserialization
This commit is contained in:
parent
bfc96f2e11
commit
717072c0a4
1 changed files with 3 additions and 4 deletions
|
@ -1220,15 +1220,14 @@ bool WindowVX::sandbox_deserialize(const void *&data, mkxp_sandbox::wasm_size_t
|
|||
}
|
||||
}
|
||||
{
|
||||
IntRect value = p->geo;
|
||||
Vec2i value = p->geo.size();
|
||||
if (!mkxp_sandbox::sandbox_deserialize(p->geo, data, max_size)) return false;
|
||||
if (p->geo.size() != value.size()) {
|
||||
if (p->geo.size() != value) {
|
||||
p->base.vertDirty = true;
|
||||
p->base.texSizeDirty = true;
|
||||
p->clipRectDirty = true;
|
||||
p->ctrlVertDirty = true;
|
||||
} else if (p->geo.pos() != value.pos()) {
|
||||
p->ctrlVertDirty = true;
|
||||
p->updateBaseQuad();
|
||||
}
|
||||
p->width = p->geo.w;
|
||||
p->height = p->geo.h;
|
||||
|
|
Loading…
Add table
Reference in a new issue