Missing braces

This commit is contained in:
Lior Halphon 2020-03-04 23:34:36 +02:00
parent 409ab2a6d4
commit 1c7351fc85

View File

@ -974,9 +974,10 @@ void GB_display_run(GB_gameboy_t *gb, uint8_t cycles)
} }
else if (gb->io_registers[GB_IO_WX] < 166 + GB_is_cgb(gb)) { else if (gb->io_registers[GB_IO_WX] < 166 + GB_is_cgb(gb)) {
if (gb->io_registers[GB_IO_WX] == (uint8_t) (gb->position_in_line + 7) || if (gb->io_registers[GB_IO_WX] == (uint8_t) (gb->position_in_line + 7) ||
(gb->io_registers[GB_IO_WX] == (uint8_t) (gb->position_in_line + 6) && !gb->wx_just_changed)) (gb->io_registers[GB_IO_WX] == (uint8_t) (gb->position_in_line + 6) && !gb->wx_just_changed)) {
should_activate_window = true; should_activate_window = true;
} }
}
if (should_activate_window) { if (should_activate_window) {
gb->window_y++; gb->window_y++;