- // Don't resize the X11 window to match rotation.
- // Rotation and scaling are handled in GL.
- //
-# ifdef USE_IPHONE
- double s = [self hackedContentScaleFactor];
-# else
- double s = 1;
-# endif
- // Store a realistic size in backbuffer_size, though the buffer is minimal.
- NSRect f = [self bounds];
- backbuffer_size.width = (int) (s * f.size.width);
- backbuffer_size.height = (int) (s * f.size.height);