GB Video: Fix LCDC changes taking effect too soon

This commit is contained in:
Jeffrey Pfau 2016-08-27 11:21:44 -07:00
parent 3593aa7b81
commit e30e3734da
1 changed files with 1 additions and 0 deletions

View File

@ -353,6 +353,7 @@ void GBIOWrite(struct GB* gb, unsigned address, uint8_t value) {
return;
case REG_LCDC:
// TODO: handle GBC differences
GBVideoProcessDots(&gb->video);
value = gb->video.renderer->writeVideoRegister(gb->video.renderer, address, value);
GBVideoWriteLCDC(&gb->video, value);
break;