Skip to content

Commit

Permalink
minor code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
pzaino committed Mar 1, 2024
1 parent 8019177 commit 96490dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cpp/layer
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ void Layer::clear(color_t color)
}

// Direct pixel manipulation
void Layer::setPixel(pixel_t x, pixel_t y, color_t color) {
void Layer::setPixel(pixel_t x, pixel_t y, color_t color)
{
// Use the render strategy to set the pixel
currentRenderStrategy->setPixel(*this, x, y, color);
}
Expand Down Expand Up @@ -130,7 +131,8 @@ void Layer::fillEllipse(pixel_t x, pixel_t y, pixel_t rx,
}

// Draw a polygon
void Layer::drawPolygon(const std::vector<pixel_t>& points, color_t color) {
void Layer::drawPolygon(const std::vector<pixel_t>& points, color_t color)
{
// Use the render strategy to draw the polygon
currentRenderStrategy->drawPolygon(*this, points, color);
}
Expand Down

0 comments on commit 96490dd

Please sign in to comment.