mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Uses triangles for drawing lines in CCanvas2D.
Differential Revision: https://code.wildfiregames.com/D4444 This was SVN commit r26479.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
/* Copyright (C) 2022 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -103,12 +103,12 @@ void CChart::Draw(CCanvas2D& canvas)
|
||||
}
|
||||
else
|
||||
{
|
||||
canvas.DrawLine(linePoints, 1.1f, data.m_Color);
|
||||
canvas.DrawLine(linePoints, 2.0f, data.m_Color);
|
||||
linePoints.clear();
|
||||
}
|
||||
}
|
||||
if (!linePoints.empty())
|
||||
canvas.DrawLine(linePoints, 1.1f, data.m_Color);
|
||||
canvas.DrawLine(linePoints, 2.0f, data.m_Color);
|
||||
}
|
||||
|
||||
if (m_AxisWidth > 0)
|
||||
|
||||
Reference in New Issue
Block a user