Skip to content

Commit

Permalink
Remove some extra arguments no longer needed after the refactoring in…
Browse files Browse the repository at this point in the history
… 0.12.2.
  • Loading branch information
agraef committed Aug 9, 2024
1 parent 505ab87 commit 5509eff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pdlua_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ static void pdlua_gfx_clear(t_pdlua *obj, int removed) {
gui_vmess("gui_luagfx_erase", "xs", cnv, gfx->object_tag);
} else {
// this just clears the gobj container
gui_vmess("gui_luagfx_clear", "xsii", cnv, gfx->object_tag, gfx->width, gfx->height);
gui_vmess("gui_luagfx_clear", "xsii", cnv, gfx->object_tag);
}
#endif

Expand Down Expand Up @@ -856,8 +856,7 @@ static int start_paint(lua_State* L) {
int ypos = text_ypix((t_object*)obj, obj->canvas);
// create a gobj graphics container in the GUI
gui_vmess("gui_luagfx_new", "xsiiiii", cnv, gfx->object_tag,
xpos, ypos, gfx->width, gfx->height,
glist_istoplevel(obj->canvas));
xpos, ypos, glist_istoplevel(obj->canvas));
} else if (strlen(gfx->object_tag))
pdlua_gfx_clear(obj, 0);
#endif
Expand Down

0 comments on commit 5509eff

Please sign in to comment.