Kandinsky: Use KDCoordinateMax

Change-Id: I2b00caec2919496c0b69313f2b4a24b8c69688da
This commit is contained in:
Romain Goyet
2016-05-31 14:20:40 +02:00
parent 34122071c9
commit 4540fa8faa
2 changed files with 3 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
#include <stdint.h>
typedef int16_t KDCoordinate;
#define KDCoordinateMax ((KDCoordinate)((1<<15)-1))
typedef struct {
KDCoordinate x;

View File

@@ -5,8 +5,8 @@
static KDRect sDrawingArea = {
.x = 0,
.y = 0,
.width = 9999, // TODO: KDCoordinateMax
.height = 9999 // TODO: KDCoordinateMax
.width = KDCoordinateMax,
.height = KDCoordinateMax
};
void KDSetDrawingArea(KDRect rect) {