mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
Fix up BGR/RGB reversal in blitter #311
This commit is contained in:
parent
25ce448889
commit
321ea908f1
@ -371,8 +371,8 @@ tria_blit(ncplane* nc, int placey, int placex, int linesize,
|
||||
const unsigned char* data, int begy, int begx,
|
||||
int leny, int lenx, bool bgr){
|
||||
const int bpp = 32;
|
||||
const int rpos = bgr ? 0 : 2;
|
||||
const int bpos = bgr ? 2 : 0;
|
||||
const int rpos = bgr ? 2 : 0;
|
||||
const int bpos = bgr ? 0 : 2;
|
||||
int dimy, dimx, x, y;
|
||||
int visy = begy;
|
||||
ncplane_dim_yx(nc, &dimy, &dimx);
|
||||
|
Loading…
Reference in New Issue
Block a user