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

StraightLineTool: don't add 1 to even-numbered widths #620

Merged
merged 1 commit into from
Sep 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion artpaint/tools/BitmapDrawer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ BitmapDrawer::_DrawShearedEllipse(BPoint center, float width, float height, uint
if (anti_alias == true) {
float error = x - fx;

color2.word = color;
color2.word = color;

uint8 alpha = round((1.0 - error) * color1.bytes[3]);

Expand Down
2 changes: 0 additions & 2 deletions artpaint/tools/StraightLineTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ StraightLineTool::UseTool(ImageView* view, uint32 buttons, BPoint point, BPoint
float brush_width_per_2;
float brush_height_per_2;
int diameter = fToolSettings.size;
if ((diameter % 2) == 0)
diameter++;

if (fToolSettings.use_current_brush == true) {
brush = ToolManager::Instance().GetCurrentBrush();
Expand Down
Loading