-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Meta" milestone #53
"Meta" milestone #53
Conversation
Latest commits fixes #14 |
One was a duplicate, the other one was OS-related from Villages times
showcase/src/test/copper.c
Outdated
|
||
uwY += 2*bDir; | ||
|
||
for(i = 0; i != 32; ++i) | ||
for(i = 0; i != 32; ++i) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!=
instead of <
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -162,5 +171,5 @@ void timerWaitUs(UWORD uwUsCnt) { | |||
// timerGetPrec(): One tick equals: PAL - 0.40us, NTSC - 0.45us | |||
ULONG ulStart = timerGetPrec(); | |||
UWORD uwTickCnt = uwUsCnt*2/5; | |||
while(timerGetPrec() - ulStart < uwTickCnt); | |||
while(timerGetPrec() - ulStart < uwTickCnt) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good example for clangformat. Guess adding something to empty code blocks will show in diff, which we agreed to mitigate. Should be in new lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that such change is significant enough to have it fully shown in diff. Also, the following code looks awful and doesn't look as done deliberately.
while(timerGetPrec() - ulStart < uwTickCnt) {
}
pManager->pCameraManager = cameraCreate(pVPort, 0, 0, uwBoundWidth, uwBoundHeight); | ||
else | ||
pManager->pCameraManager = (tCameraManager*)vPortGetManager(pVPort, VPM_CAMERA); | ||
if(!pManager) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be pManager->pCameraManager
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
fixes #43
fixes #14
fixes #48