mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 03:44:16 +00:00
Fix SkiaSurface::drawH/VLine() member functions
This commit is contained in:
parent
7bcda88861
commit
e2e33c009d
@ -215,7 +215,7 @@ public:
|
|||||||
paint.setColor(to_skia(color));
|
paint.setColor(to_skia(color));
|
||||||
m_canvas->drawLine(
|
m_canvas->drawLine(
|
||||||
SkIntToScalar(x), SkIntToScalar(y),
|
SkIntToScalar(x), SkIntToScalar(y),
|
||||||
SkIntToScalar(x+w-1), SkIntToScalar(y), paint);
|
SkIntToScalar(x+w), SkIntToScalar(y), paint);
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawVLine(gfx::Color color, int x, int y, int h) override {
|
void drawVLine(gfx::Color color, int x, int y, int h) override {
|
||||||
@ -223,7 +223,7 @@ public:
|
|||||||
paint.setColor(to_skia(color));
|
paint.setColor(to_skia(color));
|
||||||
m_canvas->drawLine(
|
m_canvas->drawLine(
|
||||||
SkIntToScalar(x), SkIntToScalar(y),
|
SkIntToScalar(x), SkIntToScalar(y),
|
||||||
SkIntToScalar(x), SkIntToScalar(y+h-1), paint);
|
SkIntToScalar(x), SkIntToScalar(y+h), paint);
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawLine(gfx::Color color, const gfx::Point& a, const gfx::Point& b) override {
|
void drawLine(gfx::Color color, const gfx::Point& a, const gfx::Point& b) override {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user