Skip to content
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

Merged
merged 10 commits into from
May 2, 2018
Merged

"Meta" milestone #53

merged 10 commits into from
May 2, 2018

Conversation

tehKaiN
Copy link
Member

@tehKaiN tehKaiN commented Apr 28, 2018

fixes #43
fixes #14
fixes #48

@tehKaiN tehKaiN requested a review from approxit April 28, 2018 18:39
@tehKaiN tehKaiN changed the title Added MPL license headers "Meta" milestone Apr 28, 2018
@tehKaiN
Copy link
Member Author

tehKaiN commented Apr 28, 2018

Latest commits fixes #14


uwY += 2*bDir;

for(i = 0; i != 32; ++i)
for(i = 0; i != 32; ++i) {
Copy link
Collaborator

@approxit approxit May 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!= instead of <?

Copy link
Member Author

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) {}
Copy link
Collaborator

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?

Copy link
Member Author

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) {
Copy link
Collaborator

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@approxit approxit merged commit 7a3dfdd into master May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants