SAGA2: Correctly initialize Points and Rectangles

This commit is contained in:
Eugene Sandulenko 2021-06-10 14:15:03 +02:00
parent a76d3ff760
commit d53bc7074c
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -34,7 +34,7 @@ public:
int16 x, y;
// constructors
Point16() {}
Point16() { x = y = 0; }
Point16(int16 nx, int16 ny) {
x = nx;
y = ny;
@ -138,7 +138,7 @@ public:
int32 x, y;
// constructors
Point32() {}
Point32() { x = y = 0; }
Point32(int32 nx, int32 ny) {
x = nx;
y = ny;
@ -250,7 +250,7 @@ public:
width, height;
// constructors
Rect16() {}
Rect16() { x = y = width = height = 0; }
Rect16(int16 nx, int16 ny, int16 nw, int16 nh) {
x = nx;
y = ny;
@ -371,7 +371,7 @@ public:
width, height;
// constructors
Rect32() {}
Rect32() { x = y = width = height = 0; }
Rect32(int32 nx, int32 ny, int32 nw, int32 nh) {
x = nx;
y = ny;