make global variables static
also, make cursor test pattern red/green to highlight RGB vs. BGR