mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-08-15 09:27:27 +00:00
platinum: Fix fb_ptr calculation.
This commit is contained in:
@@ -364,12 +364,10 @@ void PlatinumCtrl::enable_display() {
|
|||||||
this->vert_total = this->vert_blank + new_height;
|
this->vert_total = this->vert_blank + new_height;
|
||||||
|
|
||||||
// set framebuffer parameters
|
// 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->fb_pitch = this->row_words;
|
||||||
|
|
||||||
this->pixel_depth = this->dacula->get_pix_width();
|
this->pixel_depth = this->dacula->get_pix_width();
|
||||||
if (pixel_depth > 8)
|
|
||||||
this->fb_ptr += 16;
|
|
||||||
|
|
||||||
// attach framebuffer conversion routine
|
// attach framebuffer conversion routine
|
||||||
switch (this->pixel_depth) {
|
switch (this->pixel_depth) {
|
||||||
|
Reference in New Issue
Block a user