You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
419 B
25 lines
419 B
#ifndef SC_COORDS
|
|
#define SC_COORDS
|
|
|
|
#include <stdint.h>
|
|
|
|
struct size {
|
|
uint16_t width;
|
|
uint16_t height;
|
|
};
|
|
|
|
struct point {
|
|
int32_t x;
|
|
int32_t y;
|
|
};
|
|
|
|
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 point point;
|
|
};
|
|
|
|
#endif
|