mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- Make drawlinergb()
use twod->AddThickLine()
for when am_linethickness
is greater than 1, not 2.
This commit is contained in:
parent
0baaad7c23
commit
681bd640ed
1 changed files with 6 additions and 4 deletions
|
@ -294,12 +294,14 @@ void MarkSectorSeen(sectortype* sec)
|
|||
|
||||
void drawlinergb(const double x1, const double y1, const double x2, const double y2, PalEntry p)
|
||||
{
|
||||
if (am_linethickness >= 2) {
|
||||
twod->AddThickLine(x1, y1, x2, y2, am_linethickness, p, uint8_t(am_linealpha * 255));
|
||||
} else {
|
||||
// Use more efficient thin line drawing routine.
|
||||
if (am_linethickness <= 1)
|
||||
{
|
||||
twod->AddLine(x1, y1, x2, y2, &viewport3d, p, uint8_t(am_linealpha * 255));
|
||||
}
|
||||
else
|
||||
{
|
||||
twod->AddThickLine(x1, y1, x2, y2, am_linethickness, p, uint8_t(am_linealpha * 255));
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue