Fixed edit mode for arbitrary resolutions