umac.h: Calculate screen base based on resolution defines, remove hardwiring

This commit is contained in:
Matt Evans 2024-12-01 22:58:08 +00:00
parent 9b3dd31d56
commit 183a1472bb

View file

@ -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