Fix up BGR/RGB reversal in blitter #311

This commit is contained in:
nick black 2020-02-02 02:22:38 -05:00
parent 25ce448889
commit 321ea908f1
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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);