mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Painter: NaN and Null resistance (Null and NaN points are now ignored)
git-svn-id: svn://ultimatepp.org/upp/trunk@15594 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
bafeaca1e0
commit
693fb802a7
1 changed files with 3 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ void Rasterizer::CvLine(double x1, double y1, double x2, double y2)
|
|||
|
||||
void Rasterizer::LineClip(double x1, double y1, double x2, double y2)
|
||||
{
|
||||
if(IsNull(x1) || IsNull(y1) || IsNull(x2) || IsNull(y2))
|
||||
return;
|
||||
|
||||
if(y1 < cliprect.top) {
|
||||
if(y2 < cliprect.top)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue