Skip to content

Commit

Permalink
back to >0 for checking if using backbuffers in fbtft
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-FK committed Nov 12, 2020
1 parent 3025fc0 commit 1a57ac0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/staging/fbtft/fbtft-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,8 @@ void fbtft_post_process_screen(struct fbtft_par *par)
/* Get last memory buffer not written */
/* >1 and not >0 because we want to make sure */
/* application writes faster than it's read here */
if(par->nb_backbuffers_full > 1){
//if(par->nb_backbuffers_full > 1){
if(par->nb_backbuffers_full > 0){
par->vmem_ptr = par->vmem_back_buffers[par->vmem_prev_buf_idx];
par->nb_backbuffers_full--;
}
Expand Down

0 comments on commit 1a57ac0

Please sign in to comment.