Added pointer to determine if osd is displayed or not (global)