making adjust gl view work on hidpi screens