cleanup
This commit is contained in:
parent
2eb321a495
commit
5a7c198d46
|
@ -291,11 +291,13 @@ bool LCD::vramReadable(unsigned long const cc) {
|
|||
}
|
||||
|
||||
bool LCD::vramExactlyReadable(unsigned long const cc) {
|
||||
bool vramAlreadyExactlyRead = vramHasBeenExactlyRead;
|
||||
if (vramHasBeenExactlyRead) {
|
||||
return false;
|
||||
}
|
||||
if ((cc + 2 + isDoubleSpeed() > m0TimeOfCurrentLine(cc)) && (cc + 2 + isDoubleSpeed() < m0TimeOfCurrentLine(cc) + 4)) {
|
||||
vramHasBeenExactlyRead = true;
|
||||
}
|
||||
return !vramAlreadyExactlyRead && (cc + 2 + isDoubleSpeed() == m0TimeOfCurrentLine(cc));
|
||||
return cc + 2 + isDoubleSpeed() == m0TimeOfCurrentLine(cc);
|
||||
}
|
||||
|
||||
bool LCD::vramWritable(unsigned long const cc) {
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue