iPhone landscape mode

Previous topic - Next topic

codegit

Hi

Does anybody know how to switch the iPhone into lanscape mode with GLBASIC??? I suppose you could always rotate the graphics 90 degrees and then plot from the top right corner moving left and down (if this makes sense)
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

Kitty Hello

it will be built in one day.
So far do this:

Code (glbasic) Select

CREATESCREEN 0,0,480,320
USESCREEN 0

WHILE TRUE
   .. draw as if it was 480x320


   USESCREEN -1
   ROTOSPRITE 0, (320-480)/2, (480-320)/2, 90 // or 270 for other orientation
   SHOWSCREEN
WEND


You have to rotate the mouse coordinates, too.

codegit

Yes, this makes sense. Thanks  :good:

Quote from: Kitty Hello on 2009-Aug-06
it will be built in one day.
So far do this:

Code (glbasic) Select

CREATESCREEN 0,0,480,320
USESCREEN 0

WHILE TRUE
   .. draw as if it was 480x320


   USESCREEN -1
   ROTOSPRITE 0, (320-480)/2, (480-320)/2, 90 // or 270 for other orientation
   SHOWSCREEN
WEND


You have to rotate the mouse coordinates, too.
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added