diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -136,11 +136,11 @@ screen_talk(Device *d, u8 b0, u8 w) { | |||
136 | u8 *layer = d->dat[0xe] >> 4 & 0x1 ? ppu.fg : ppu.bg; | 136 | u8 *layer = d->dat[0xe] >> 4 & 0x1 ? ppu.fg : ppu.bg; |
137 | u8 mode = d->dat[0xe] >> 5; | 137 | u8 mode = d->dat[0xe] >> 5; |
138 | if(!mode) { | 138 | if(!mode) { |
139 | putpixel(layer, x, y, d->dat[0xe] & 0x3); | 139 | ppu_pixel(layer, x, y, d->dat[0xe] & 0x3); |
140 | } else if(mode-- & 0x1) { | 140 | } else if(mode-- & 0x1) { |
141 | puticn(layer, x, y, addr, d->dat[0xe] & 0xf, mode & 0x2, mode & 0x4); | 141 | ppu_1bpp(layer, x, y, addr, d->dat[0xe] & 0xf, mode & 0x2, mode & 0x4); |
142 | } else { | 142 | } else { |
143 | putchr(layer, x, y, addr, d->dat[0xe] & 0xf, mode & 0x2, mode & 0x4); | 143 | ppu_2bpp(layer, x, y, addr, d->dat[0xe] & 0xf, mode & 0x2, mode & 0x4); |
144 | } | 144 | } |
145 | } | 145 | } |
146 | } | 146 | } |