control: Fix 1280x960 and 1280x1024 15bpp.

Change the fb_ptr. This also affects the hardware cursor.
Tested with 4MB of VRAM.
This commit is contained in:
joevt 2024-04-24 01:12:23 -07:00 committed by dingusdev
parent 861c2d4f04
commit 721c70166c
1 changed files with 4 additions and 1 deletions

View File

@ -591,7 +591,10 @@ void ControlVideo::enable_display()
}
this->pixel_depth = this->radacal->get_pix_width();
if (swatch_params[ControlRegs::HAL-1] != swatch_params[ControlRegs::PIPE_DELAY-1] + 1 || this->pixel_depth == 32) {
if (swatch_params[ControlRegs::HAL-1] != swatch_params[ControlRegs::PIPE_DELAY-1] + 1 ||
this->pixel_depth == 32 ||
(this->pixel_depth == 16 && this->active_width == 1280)
) {
// don't know how to calculate offset from GBASE (fb_base); it is always hard coded as + 16 in the ndrv.
this->fb_ptr += 16; // first 16 bytes are for 4 bpp HW cursor
}