git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit b40505e3fba4c2871b8f4ef709c866c78c1fd809
parent bb791250e29f40150a8e9ba6eb6ae07b4cba1172
Author: Toxa <56631470+untoxa@users.noreply.github.com>
Date:   Wed, 20 May 2026 14:43:08 +0300

Define scroll_x_t / scroll_y_t types for all platforms for better compatibility
Diffstat:
Mgbdk-lib/include/gb/hardware.h2++
Mgbdk-lib/include/msx/hardware.h2++
Mgbdk-lib/include/sms/hardware.h2++
3 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/gbdk-lib/include/gb/hardware.h b/gbdk-lib/include/gb/hardware.h @@ -461,4 +461,6 @@ __REG IE_REG; /**< Interrupt enable */ #define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8) /**< Width of visible screen in pixels */ #define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8) /**< Height of visible screen in pixels */ +typedef uint8_t scroll_x_t; +typedef uint8_t scroll_y_t; #endif diff --git a/gbdk-lib/include/msx/hardware.h b/gbdk-lib/include/msx/hardware.h @@ -158,4 +158,6 @@ extern volatile UBYTE VDP_ATTR_SHIFT; #define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8) #define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8) +typedef uint8_t scroll_x_t; +typedef uint8_t scroll_y_t; #endif diff --git a/gbdk-lib/include/sms/hardware.h b/gbdk-lib/include/sms/hardware.h @@ -285,4 +285,6 @@ extern volatile UBYTE VDP_ATTR_SHIFT; #define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8) #define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8) +typedef uint8_t scroll_x_t; +typedef uint8_t scroll_y_t; #endif

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.