umac.h: Calculate screen base based on resolution defines, remove hardwiring
This commit is contained in:
parent
9b3dd31d56
commit
183a1472bb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue