graph.c: Pixel_figure is not a global var anymore

This commit is contained in:
Thomas Bernard
2018-03-03 02:07:08 +01:00
parent be8b05a384
commit ce1b55be03
4 changed files with 11 additions and 5 deletions

View File

@@ -524,7 +524,7 @@ int L_DrawLine(lua_State* L)
LUA_ARG_NUMBER(4, "drawline", y2, INT_MIN, INT_MAX);
LUA_ARG_NUMBER(5, "drawline", c, INT_MIN, INT_MAX);
Pixel_figure = (void (*) (word,word,byte))Pixel_figure_no_screen;
Set_Pixel_figure((void (*) (word,word,byte))Pixel_figure_no_screen);
Draw_line_general(x1, y1, x2, y2, c);
return 0;
@@ -598,7 +598,7 @@ int L_DrawCircle(lua_State* L)
LUA_ARG_NUMBER(3, "drawcircle", r, INT_MIN, INT_MAX);
LUA_ARG_NUMBER(4, "drawcircle", c, INT_MIN, INT_MAX);
Pixel_figure = (void (*) (word,word,byte))Pixel_figure_no_screen;
Set_Pixel_figure((void (*) (word,word,byte))Pixel_figure_no_screen);
Circle_limit = r*r;
Draw_empty_circle_general(x1, y1, r, c);