Skip to content

Commit

Permalink
Fix compilation with GBC mode disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrxAC committed Dec 27, 2023
1 parent 2635877 commit 51372ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/emu.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,14 @@ void draw_emu() {
}

if (config->scale == SCALE_1_5X_NEAREST) scale_nearest();

else if (config->scale == SCALE_1_5X_BILINEAR) {
// If using the grayscale palette and not in GBC mode, use a faster algorithm
if (config->palette_choice == 0 && !gb->cgb.cgbMode) scale_bilinear_gray();
#if PEANUT_FULL_GBC_SUPPORT
if (config->palette_choice == 0 && !gb->cgb.cgbMode) scale_bilinear_gray();
#else
if (config->palette_choice == 0) scale_bilinear_gray();
#endif
else scale_bilinear();
}

Expand Down

0 comments on commit 51372ce

Please sign in to comment.