Skip to content
Snippets Groups Projects
Commit dffbd572 authored by deuce's avatar deuce
Browse files

Don't redraw the cursor when hold_update is true.

Fixes an issue where the blinking cursor would corrupt the Sixel data.
parent 9524080c
Branches
Tags
No related merge requests found
...@@ -1104,6 +1104,9 @@ static int update_rect(int sx, int sy, int width, int height, int force) ...@@ -1104,6 +1104,9 @@ static int update_rect(int sx, int sy, int width, int height, int force)
memcpy(cvstat.vmem->bgvmem, vmem_ptr->bgvmem, vstat.cols*vstat.rows*sizeof(vmem_ptr->bgvmem[0])); memcpy(cvstat.vmem->bgvmem, vmem_ptr->bgvmem, vstat.cols*vstat.rows*sizeof(vmem_ptr->bgvmem[0]));
pthread_mutex_unlock(&vmem_lock); pthread_mutex_unlock(&vmem_lock);
if (hold_update)
redraw_cursor = 0;
for(y=0;y<height;y++) { for(y=0;y<height;y++) {
pos=(sy+y-1)*cvstat.cols+(sx-1); pos=(sy+y-1)*cvstat.cols+(sx-1);
for(x=0;x<width;x++) { for(x=0;x<width;x++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment