Replaced decompiled code with bresenhams algorithm. Gfx_draw_line finished.