Swap position/point names

A point is a 2D vector. A position represent a point relative to the
screen size.
This commit is contained in:
Romain Vimont
2018-01-29 14:52:22 +01:00
parent f70359f14f
commit 879941355d
15 changed files with 109 additions and 109 deletions

View File

@@ -11,16 +11,16 @@ struct size {
Uint16 height;
};
struct position {
struct point {
Uint16 x;
Uint16 y;
};
struct point {
struct position {
// The video screen size may be different from the real device screen size,
// so store to which size the absolute position apply, to scale it accordingly.
struct size screen_size;
struct position position;
struct point point;
};
#endif