mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-08 14:30:55 +00:00
platinum: Fix fb_ptr calculation.
This commit is contained in:
parent
be2f5273d1
commit
644087b592
@ -364,12 +364,10 @@ void PlatinumCtrl::enable_display() {
|
||||
this->vert_total = this->vert_blank + new_height;
|
||||
|
||||
// set framebuffer parameters
|
||||
this->fb_ptr = &this->vram_ptr[this->fb_offset];
|
||||
this->fb_ptr = &this->vram_ptr[this->fb_offset] + 16;
|
||||
this->fb_pitch = this->row_words;
|
||||
|
||||
this->pixel_depth = this->dacula->get_pix_width();
|
||||
if (pixel_depth > 8)
|
||||
this->fb_ptr += 16;
|
||||
|
||||
// attach framebuffer conversion routine
|
||||
switch (this->pixel_depth) {
|
||||
|
Loading…
Reference in New Issue
Block a user