gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit a714de237e55cea04b798385f6c491ea25b8d29c parent f3af8db79cf11d5901e645e3c906219929c894c8 Author: Toxa <untoxa@mail.ru> Date: Sat, 5 Aug 2023 11:56:38 +0300 GB: define legacy Game Boy constants through the cross-platform hardware constants Diffstat:
| M | gbdk-lib/include/gb/gb.h | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gbdk-lib/include/gb/gb.h b/gbdk-lib/include/gb/gb.h @@ -159,16 +159,16 @@ #define SCREENHEIGHT DEVICE_SCREEN_PX_HEIGHT /** The Minimum X position of the Window Layer (Left edge of screen) @see move_win() */ -#define MINWNDPOSX 0x07U +#define MINWNDPOSX DEVICE_WINDOW_PX_OFFSET_X /** The Minimum Y position of the Window Layer (Top edge of screen) @see move_win() */ -#define MINWNDPOSY 0x00U +#define MINWNDPOSY DEVICE_WINDOW_PX_OFFSET_Y /** The Maximum X position of the Window Layer (Right edge of screen) @see move_win() */ -#define MAXWNDPOSX 0xA6U +#define MAXWNDPOSX (DEVICE_WINDOW_PX_OFFSET_X + DEVICE_SCREEN_PX_WIDTH - 1) /** The Maximum Y position of the Window Layer (Bottom edge of screen) @see move_win() */ -#define MAXWNDPOSY 0x8FU +#define MAXWNDPOSY (DEVICE_WINDOW_PX_OFFSET_Y + DEVICE_SCREEN_PX_HEIGHT - 1) /** Interrupt handlers
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.