|
|
@@ -2,6 +2,7 @@
|
|
|
#include <cstring>
|
|
|
#include "CXfb.h"
|
|
|
#include "utility/misc.h"
|
|
|
+#include "utility/minmax.h"
|
|
|
|
|
|
#define GRAPHICS Nspire::CXfb
|
|
|
|
|
|
@@ -22,6 +23,9 @@ bool buffer_swap_ready;
|
|
|
* Buffer management
|
|
|
*/
|
|
|
|
|
|
+#define min(a, b) (((a) < (b)) ? (a) : (b))
|
|
|
+#define max(a, b) (((a) > (b)) ? (a) : (b))
|
|
|
+
|
|
|
void GRAPHICS::buffer_allocate()
|
|
|
{
|
|
|
buffer_screen = (uint16_t *) malloc(BUFFER_SIZE);
|