Skip to content

Commit

Permalink
Fixed the initialization of NTSC_SETTINGS and PAL_SETTINGS structures.
Browse files Browse the repository at this point in the history
  • Loading branch information
punesemu committed Oct 16, 2023
1 parent f2638cd commit 71e7143
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/video/filters/ntsc_lmp88959.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ BYTE ntsc_lmp88959_init(void) {
}
void ntsc_lmp88959_surface(BYTE nidx) {
if (crt.out != gfx.filter.data.pix) {
ntsc_lmp88959_init();
crt_init(&crt, SCR_COLUMNS * gfx.filter.factor, SCR_ROWS * gfx.filter.factor,
CRT_PIX_FORMAT_BGRA, (unsigned char *)gfx.filter.data.pix);
}
Expand Down
1 change: 1 addition & 0 deletions src/video/filters/ntsc_nesrgb_lmp88959.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ BYTE ntsc_nesrgb_lmp88959_init(void) {
}
void ntsc_nesrgb_lmp88959_surface(BYTE nidx) {
if (crt_nesrgb.out != gfx.filter.data.pix) {
ntsc_nesrgb_lmp88959_init();
crt_nesrgb_init(&crt_nesrgb, SCR_COLUMNS * gfx.filter.factor, SCR_ROWS * gfx.filter.factor,
CRT_PIX_FORMAT_BGRA, (unsigned char *)gfx.filter.data.pix);
}
Expand Down
1 change: 1 addition & 0 deletions src/video/filters/pal_lmp88959.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ BYTE pal_lmp88959_init(void) {
}
void pal_lmp88959_surface(BYTE nidx) {
if (crt.out != gfx.filter.data.pix) {
pal_lmp88959_init();
pal_init(&crt, SCR_COLUMNS * gfx.filter.factor, SCR_ROWS * gfx.filter.factor,
PAL_PIX_FORMAT_BGRA, (unsigned char *)gfx.filter.data.pix);
}
Expand Down
1 change: 1 addition & 0 deletions src/video/filters/pal_nesrgb_lmp88959.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ BYTE pal_nesrgb_lmp88959_init(void) {
}
void pal_nesrgb_lmp88959_surface(BYTE nidx) {
if (crt_nesrgb.out != gfx.filter.data.pix) {
pal_nesrgb_lmp88959_init();
pal_nesrgb_init(&crt_nesrgb, SCR_COLUMNS * gfx.filter.factor, SCR_ROWS * gfx.filter.factor,
PAL_PIX_FORMAT_BGRA, (unsigned char *)gfx.filter.data.pix);
}
Expand Down

0 comments on commit 71e7143

Please sign in to comment.