mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
WAGE: Fix cropped graphics in Intro to Gothic
This commit is contained in:
parent
1b955dc90c
commit
f0894c277e
@ -206,7 +206,16 @@ Obj::Obj(Common::String name, Common::SeekableReadStream *data, int resourceId)
|
||||
|
||||
_design = new Design(data);
|
||||
|
||||
setDesignBounds(readRect(data));
|
||||
// WORKAROUND: Intro to Gothic has wrong design bounds for a button
|
||||
if (name == "go" && resourceId == 27613) {
|
||||
int y1 = data->readSint16BE() - 2;
|
||||
int x1 = data->readSint16BE() - 2;
|
||||
int y2 = data->readSint16BE() + 2;
|
||||
int x2 = data->readSint16BE() + 2;
|
||||
setDesignBounds(new Common::Rect(x1, y1, x2 + 50, y2));
|
||||
}
|
||||
else
|
||||
setDesignBounds(readRect(data));
|
||||
|
||||
int16 namePlural = data->readSint16BE();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user