drawgfx.c: make it possible to reset the total elements of a gfx_element [Alex Jackson]