slightly modified the "drawcross" method in "tools.cpp"