Fix up BGR/RGB reversal in blitter #311

pull/312/head
nick black 4 years ago
parent 25ce448889
commit 321ea908f1
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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…
Cancel
Save