osc: fixed screen-res change detection

Formerly, only changes in horizontal resolution were detected