aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/rxyfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/rxyfile.cpp')
-rw-r--r--engines/gob/rxyfile.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/gob/rxyfile.cpp b/engines/gob/rxyfile.cpp
index 5311eece0f..06a07bdc9c 100644
--- a/engines/gob/rxyfile.cpp
+++ b/engines/gob/rxyfile.cpp
@@ -30,6 +30,15 @@ RXYFile::RXYFile(Common::SeekableReadStream &rxy) : _width(0), _height(0) {
load(rxy);
}
+RXYFile::RXYFile(uint16 width, uint16 height) : _realCount(1), _width(width), _height(height) {
+ _coords.resize(1);
+
+ _coords[0].left = 0;
+ _coords[0].top = 0;
+ _coords[0].right = _width - 1;
+ _coords[0].bottom = _height - 1;
+}
+
RXYFile::~RXYFile() {
}