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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user