fixed rendering legend in cl_gui_main_window