forked from pyrex/chameleonic
main #21
@ -137,10 +137,7 @@ function _rast(
|
|||||||
end
|
end
|
||||||
|
|
||||||
local dx,dy=abs(x1-x0),abs(y1-y0)
|
local dx,dy=abs(x1-x0),abs(y1-y0)
|
||||||
local sx=-1
|
local sx,sy=sgn(x1-x0),sgn(y1-y0)
|
||||||
local sy=-1
|
|
||||||
if (x0<x1) sx=1
|
|
||||||
if (y0<y1) sy=1
|
|
||||||
|
|
||||||
local done,err
|
local done,err
|
||||||
if dx>dy then
|
if dx>dy then
|
||||||
|
Loading…
Reference in New Issue
Block a user