Skip to content

Commit 107423b

Browse files
authored
Update README.md
1 parent f6562fc commit 107423b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static int hue = 0;
133133
In your initialization function:
134134
```c
135135
/* pass it the buffer to be drawn on screen */
136-
crt_init(&crt, screen_width, screen_height, CRT_PIX_FORMAT_RGBA, screen_buffer);
136+
crt_init(&crt, screen_width, screen_height, CRT_PIX_FORMAT_BGRA, screen_buffer);
137137
/* specify some settings */
138138
crt.blend = 1;
139139
crt.scanlines = 1;
@@ -143,7 +143,7 @@ crt.scanlines = 1;
143143
In your drawing loop:
144144
```c
145145
ntsc.data = video_buffer; /* buffer from your rendering */
146-
ntsc.format = CRT_PIX_FORMAT_RGBA;
146+
ntsc.format = CRT_PIX_FORMAT_BGRA;
147147
ntsc.w = video_width;
148148
ntsc.h = video_height;
149149
ntsc.as_color = color;

0 commit comments

Comments
 (0)