# SDL\_CreateWindow resolution ignored in iOS (Retina screen)

**URL:** <https://discourse.libsdl.org/t/sdl-createwindow-resolution-ignored-in-ios-retina-screen/18398>\
**Category:** SDL Development\
**Created:** [August 12, 2011, 6:53pm UTC](https://discourse.libsdl.org/t/sdl-createwindow-resolution-ignored-in-ios-retina-screen/18398 "2011-08-12T18:53:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thehaui](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/t/f08c70/32.png) [@thehaui](https://discourse.libsdl.org/u/thehaui)\
**Post date:** [August 12, 2011, 6:53pm UTC](https://discourse.libsdl.org/t/sdl-createwindow-resolution-ignored-in-ios-retina-screen/18398/1 "2011-08-12T18:53:57Z")

</div>

Hi,

I just can’t find the reason why the width and height parameter in the SDL\_CreateWindow function gets ignored if I run my SDL application on the iPhone4.

I use the following code but the device opens always in 320x480 screen mode:

Code:  
SDL\_Window \*window = SDL\_CreateWindow(0, 0, 0, 640, 960, SDL\_WINDOW\_OPENGL | SDL\_WINDOW\_BORDERLESS | SDL\_WINDOW\_SHOWN);

The same happens on the iPad. Did I miss anything?

Thanks for your help!
