Input: st1232 - fix off-by-one error in resolution handling