- [FIX] Estava mirant mal el flag de BRIGHT
This commit is contained in:
@@ -111,14 +111,13 @@ namespace zxscreen
|
||||
uint8_t color = memory[color_addr[t_screen]];
|
||||
uint8_t c1 = color&0x7, c2 = (color>>3)&0x7;
|
||||
if ((color&0x80) && flash) { c1=c2; c2=color&0x7; }
|
||||
if ((color&040)) { c1 |= 0x8; c2 |= 0x8; }
|
||||
if ((color&0x40)) { c1 |= 0x8; c2 |= 0x8; }
|
||||
uint16_t address = (0x4000) | (pixel_addr[t_screen]&0x1FFF);
|
||||
uint8_t mask = 1 << (pixel_addr[t_screen]>>13);
|
||||
uint8_t block = memory[address];
|
||||
*(ptr_pixel++)=(block&mask) ? c1 : c2;
|
||||
mask>>=1;
|
||||
*(ptr_pixel++)=(block&mask) ? c1 : c2;
|
||||
|
||||
}
|
||||
pixels_draw+=2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user