diff --git a/src/hgr_graphics.h b/src/hgr_graphics.h new file mode 100644 index 0000000..4851bd9 --- /dev/null +++ b/src/hgr_graphics.h @@ -0,0 +1,8 @@ +#ifndef _HGR_GRAPHICS_HEADER_ +#define _HGR_GRAPHICS_HEADER_ + +#define SCREEN_HEIGHT 192 +#define SCREEN_WIDTH_BYTES 128 +#define BYTES_PER_LINE 40 + +#endif /* _HGR_GRAPHICS_HEADER_ */ diff --git a/src/hgr_line_data.c b/src/hgr_line_data.c index 34d205f..95866e3 100644 --- a/src/hgr_line_data.c +++ b/src/hgr_line_data.c @@ -1,6 +1,6 @@ #include -#include "utility.h" +#include "hgr_graphics.h" const uint16_t line_offset_map[SCREEN_HEIGHT] = { 0x0000, 0x0400, 0x0800, 0x0C00, 0x1000, 0x1400, 0x1800, 0x1C00, 0x0080, 0x0480, 0x0880, 0x0C80, diff --git a/src/hgr_line_data.h b/src/hgr_line_data.h index 145b920..9466fe5 100644 --- a/src/hgr_line_data.h +++ b/src/hgr_line_data.h @@ -2,7 +2,8 @@ #define _HGR_LINE_DATA_HEADER_ #include -#include "utility.h" + +#include "hgr_graphics.h" extern const uint16_t line_offset_map[SCREEN_HEIGHT]; diff --git a/src/utility.h b/src/utility.h index 2195052..96fc869 100644 --- a/src/utility.h +++ b/src/utility.h @@ -3,10 +3,6 @@ #include -#define SCREEN_HEIGHT 192 -#define SCREEN_WIDTH_BYTES 128 -#define BYTES_PER_LINE 40 - #define PEEKZ(a) (*(volatile uint8_t* __attribute__((zpage)))(a)) #define POKEZ(a, b) ((*(volatile uint8_t* __attribute__((zpage)))(a)) = b)