Skip to content

Commit

Permalink
Merge pull request #62 from pimoroni/circle_fix
Browse files Browse the repository at this point in the history
Circle fix
  • Loading branch information
lowfatcode authored Nov 2, 2021
2 parents 5b278e1 + 107fed2 commit 5322efe
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 71 deletions.
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ add_subdirectory(colour)
#add_subdirectory(sfx)
add_subdirectory(music)
add_subdirectory(blend)
add_subdirectory(blit)
add_subdirectory(blit)
7 changes: 0 additions & 7 deletions examples/bouncing_balls/CMakeLists.txt

This file was deleted.

61 changes: 0 additions & 61 deletions examples/bouncing_balls/bouncing_balls.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion libraries/blend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace picosystem {
if(uintptr_t(pd) & 0b11 && c) { *pd++ = *ps; c--; } // align to 32bits
uint32_t *pda = (uint32_t *)pd; uint32_t s = *ps | (*ps << 16);
while(c > 1) { *pda++ = s; c-=2; } // two pixel copy
if(c) { *pd++ = *ps; c--; } // finish if needed
if(c) { pd = (color_t *)pda; *pd = *ps; } // finish if needed
}else if(ss == 1 << 16) {
// optimised for source step == 1
memcpy(pd, ps, c * 2);
Expand Down
2 changes: 1 addition & 1 deletion libraries/primitives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace picosystem {
_camera_offset(false);
hline(x, y, w);
vline(x, y + 1, h - 1);
hline(x + 1, y + h - 1, w);
hline(x + 1, y + h - 1, w - 1);
vline(x + w - 1, y, h - 1);
_camera_offset(true);
}
Expand Down

0 comments on commit 5322efe

Please sign in to comment.