mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-13 17:54:28 -05:00
fix read data of display (#2312)
This commit is contained in:
parent
9f84ccbe1f
commit
7a38b04192
@ -416,8 +416,12 @@ class IO {
|
||||
const auto value_low = data_read();
|
||||
uint32_t original_value = (value_high << 8) | value_low;
|
||||
|
||||
if (get_is_inverted()) return original_value;
|
||||
|
||||
if (get_dark_cover()) {
|
||||
original_value = DARKENED_PIXEL(original_value, get_brightness());
|
||||
// this is read data, so if the fake brightness is enabled AKA get_dark_cover() == true,
|
||||
// then shift to back side AKA UNDARKENED_PIXEL, to prevent read shifted darkern info
|
||||
original_value = UNDARKENED_PIXEL(original_value, get_brightness());
|
||||
}
|
||||
return original_value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user