packed screen struct to 2 bytes, saved 2 kB of RAM
This commit is contained in:
+5
-5
@@ -10,12 +10,12 @@
|
|||||||
#define COLOR_MAX 15
|
#define COLOR_MAX 15
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Screen cell data type
|
* Screen cell data type (16 bits)
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct __attribute__((packed)){
|
||||||
char c;
|
char c : 8;
|
||||||
Color fg;
|
Color fg : 4;
|
||||||
Color bg;
|
Color bg : 4;
|
||||||
} Cell;
|
} Cell;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user