videocommon: cleanup UpdateRectangle