GRAPHICS.EU problems
- Posted by Bernie <xotron at PCOM.NET> Sep 14, 2000
- 391 views
-- Mike: When you run WIRE.EX in LINUX the draw_line procedure is trying to use FLOATING POINT NUMBERS for coordinates. For some reason ( which Rob might know ) the M_LINE machine procedure seems converts them internally to integers. A temporary fix until you figure out what is wrong is to use floor on each coordinate like the following in the draw_line procedure. -- vga_drawline(xyarray[ctr-1][1],xyarray[ctr-1][2],xyarray[ctr][1], -- xyarray[ctr][2]) vga_drawline(floor(xyarray[ctr-1][1]),floor(xyarray[ctr-1][2]), floor(xyarray[ctr][1]), floor(xyarray[ctr][2])) This will allow WIRE.EX to run in LINUX, but I don't know if the other demos will have other problems. Bernie