Issue #5933: Fixed repeat drawing scale9sprite bug