only call set resolution if we have positive x and y values