mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-10-02 13:56:42 -05:00
Using normal wait in LinkWireless
This commit is contained in:
@@ -462,7 +462,7 @@ void wait(u32 verticalLines) {
|
||||
|
||||
while (count < verticalLines) {
|
||||
if (REG_VCOUNT != vCount) {
|
||||
count += max((int)REG_VCOUNT - (int)vCount, 0);
|
||||
count++;
|
||||
vCount = REG_VCOUNT;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1612,7 +1612,7 @@ class LinkWireless {
|
||||
|
||||
bool timeout(u32 limit, u32& lines, u32& vCount) {
|
||||
if (REG_VCOUNT != vCount) {
|
||||
lines += std::max((int)REG_VCOUNT - (int)vCount, 0);
|
||||
lines += max((int)REG_VCOUNT - (int)vCount, 0);
|
||||
vCount = REG_VCOUNT;
|
||||
}
|
||||
|
||||
@@ -1625,7 +1625,7 @@ class LinkWireless {
|
||||
|
||||
while (count < verticalLines) {
|
||||
if (REG_VCOUNT != vCount) {
|
||||
count += std::max((int)REG_VCOUNT - (int)vCount, 0);
|
||||
count++;
|
||||
vCount = REG_VCOUNT;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user