restore some SDL1 code in CMT.XXX