From 183a1472bbabbaad3de00615387f94f525a5030e Mon Sep 17 00:00:00 2001 From: Matt Evans Date: Sun, 1 Dec 2024 22:58:08 +0000 Subject: [PATCH] umac.h: Calculate screen base based on resolution defines, remove hardwiring --- include/umac.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/umac.h b/include/umac.h index 1298e55..024a174 100644 --- a/include/umac.h +++ b/include/umac.h @@ -50,7 +50,7 @@ static inline void umac_1hz_event(void) static inline unsigned int umac_get_fb_offset(void) { /* FIXME: Implement VIA RA6/vid.pg2 */ - return RAM_SIZE - 0x5900; + return RAM_SIZE - ((DISP_WIDTH * DISP_HEIGHT / 8) + 0x380); } #endif