Skip to content
Snippets Groups Projects
Commit f41de9a1 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Now that vstat.vmem has more stuff, ripper needs to hack up more.

Fixes assertion/crash in 91-column mode (used in LORD intro screens)
parent 6f2621a6
No related branches found
No related tags found
No related merge requests found
Pipeline #7859 passed
...@@ -10177,6 +10177,10 @@ reinit_screen(uint8_t *font, int fx, int fy) ...@@ -10177,6 +10177,10 @@ reinit_screen(uint8_t *font, int fx, int fy)
memset(nvmem, 0, vstat.cols * vstat.rows * sizeof(vstat.vmem->vmem[0])); memset(nvmem, 0, vstat.cols * vstat.rows * sizeof(vstat.vmem->vmem[0]));
   
// And use it. // And use it.
vstat.vmem->top_row = 0;
vstat.vmem->width = cols;
vstat.vmem->height = rows;
vstat.vmem->count = cols * rows;
vstat.vmem->vmem = nvmem; vstat.vmem->vmem = nvmem;
} }
do_rwlock_unlock(&vstatlock); do_rwlock_unlock(&vstatlock);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment