Fixed snapshots being cut off in fullscreen mode (fixes #674).

This commit is contained in:
Stephen Anthony 2020-07-25 16:37:52 -02:30
parent 155839fb0b
commit ab942bc221
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,9 @@
6.2.1 to 6.3 (XXXX XX, 2020)
* Fix bug when taking fullscreen snapshots; the dimensions were sometimes
cut off.
* Added autofire.
* Added new interface palette 'Dark'. (TODO: DOC)

View File

@ -111,7 +111,8 @@ struct Rect
Rect() {}
explicit Rect(const Size& s) : bottom(s.h), right(s.w) { assert(valid()); }
Rect(uInt32 w, uInt32 h) : bottom(h), right(w) { assert(valid()); }
Rect(const Point& p, uInt32 w, uInt32 h) : top(p.y), left(p.x), bottom(h), right(w) { assert(valid()); }
Rect(const Point& p, uInt32 w, uInt32 h)
: top(p.y), left(p.x), bottom(p.y + h), right(p.x + w) { assert(valid()); }
Rect(uInt32 x1, uInt32 y1, uInt32 x2, uInt32 y2) : top(y1), left(x1), bottom(y2), right(x2) { assert(valid()); }
uInt32 x() const { return left; }