[PATCH 2/3] Remove curropen variable from DrawItem function