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

Don't reset font in RIPv3 mode

It appears v3 kept the font through a RIP_RESET_WINDOWS command
parent 206134e2
No related branches found
No related tags found
No related merge requests found
Pipeline #6978 canceled
...@@ -8,6 +8,7 @@ Fix mouse selection in scrollback ...@@ -8,6 +8,7 @@ Fix mouse selection in scrollback
Fix RIP XOR operation Fix RIP XOR operation
Fix memory leak in RIP parser Fix memory leak in RIP parser
Fix handling of split CRLF pairs in RIP mode Fix handling of split CRLF pairs in RIP mode
Don't change font for RIP_RESET_WINDOWS in RIPv3 mode
Version 1.2rc4 Version 1.2rc4
-------------- --------------
......
...@@ -7855,6 +7855,19 @@ rv_reset(const char * const var, const void * const data) ...@@ -7855,6 +7855,19 @@ rv_reset(const char * const var, const void * const data)
rip.text_disabled = false; rip.text_disabled = false;
rip.ansi_state = ANSI_STATE_NONE; rip.ansi_state = ANSI_STATE_NONE;
_setcursortype(rip.curstype); _setcursortype(rip.curstype);
if (rip.version == RIP_VERSION_3) {
void *font;
int width;
int height;
pthread_mutex_lock(&vstatlock);
font = vstat.forced_font;
width = vstat.charwidth;
height = vstat.charheight;
pthread_mutex_unlock(&vstatlock);
reinit_screen(font, width, height);
}
else
reinit_screen((uint8_t *)conio_fontdata[0].eight_by_eight, 8, 8); reinit_screen((uint8_t *)conio_fontdata[0].eight_by_eight, 8, 8);
memcpy(&curr_ega_palette, &default_ega_palette, sizeof(curr_ega_palette)); memcpy(&curr_ega_palette, &default_ega_palette, sizeof(curr_ega_palette));
set_ega_palette(); set_ega_palette();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment