Skip to content

Commit f6562fc

Browse files
authored
Pixel format was wrong in the demo app
1 parent d2aa819 commit f6562fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crt_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ displaycb(void)
467467
ntsc.hue = hue;
468468
#else
469469
ntsc.data = img;
470-
ntsc.format = CRT_PIX_FORMAT_RGBA;
470+
ntsc.format = CRT_PIX_FORMAT_BGRA;
471471
ntsc.w = imgw;
472472
ntsc.h = imgh;
473473
ntsc.as_color = color;
@@ -516,7 +516,7 @@ main(int argc, char **argv)
516516

517517
printf(DRV_HEADER);
518518

519-
crt_init(&crt, info->width, info->height, CRT_PIX_FORMAT_RGBA, video);
519+
crt_init(&crt, info->width, info->height, CRT_PIX_FORMAT_BGRA, video);
520520
crt.blend = 1;
521521
crt.scanlines = 1;
522522

0 commit comments

Comments
 (0)