Merge pull request #453 from mrdudz/waitvsync

waitvblank for cbm targets
This commit is contained in:
Oliver Schmidt
2017-07-18 15:38:27 +02:00
committed by GitHub
19 changed files with 142 additions and 26 deletions

View File

@@ -117,8 +117,8 @@ void main(void)
gotoxy(7 + inpos,1);
#if defined(__NES__) || defined(__PCE__) || defined(__GAMATE__)
/* not all targets have waitvblank */
waitvblank();
/* not all targets have waitvsync */
waitvsync();
/* for targets that do not have a keyboard, read the first
joystick */
joy = joy_read(JOY_1);

View File

@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
break;
}
waitvblank();
waitvsync();
(*((unsigned char*)LCD_XPOS)) = x;
(*((unsigned char*)LCD_YPOS)) = y;

View File

@@ -123,7 +123,7 @@ void main(void)
p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]);
}
waitvblank();
waitvsync();
++n;
}
}