Get display width and height for adapter script