RETINA and other screen related bugs

Previous topic - Next topic

ampos

--Project in portrait (320x480), setscreen 480,320 (landscape):
The iPhone screen is openend in landscape, screensize report 480x320 and desktop reports 320x480
If no "setscreen" command is in source, screens opens in portrait and Size&Desktop is ok (320x480), as spected.
In fact, the real screen opened is the one set with "setscreen" and reported correctly by getscreensize, but getscreendesktop reports the one set in the project.
The reverse is true, too, in proyect landscape and setscreen in portrait: the real screen opened in iPhone is the one in "setscreen" and the one in project settings in the one reported by "getdesktopsize"

--Proyect in portrait (640x960), no setscreen
Mousestate coordinates are not from 0,0 to 640x960 but 320x480, no retina mouse coordinates. A bug, or is it this way? If the mouse/screen system in iOS  is not 640x960 but 320x480, GLB should multiply internally by 2 for ease of use in GLB progs

--Proyect landscape 960x640, no setscreen
Real bug: mousestate reports x coord from 0 to 480, and y coord from 320 to 640


The little prog I have made for checking all of this:

Code (glbasic) Select

SETCURRENTDIR("Media") // seperate media and binaries?
SETSCREEN 768,1024,0
LOADFONT "smalfont.png",0
LIMITFPS 60

WHILE TRUE
MOUSESTATE mx,my,b1,b2
DRAWRECT 470,310,20,20,RGB(255,0,0)
PRINT GETJOYNAME$(0), 0, 0 // Name of Device
PRINT " X:"+INTEGER(100*GETJOYX(0))+" Y:"+INTEGER(100*GETJOYY(0))+" Z:"+INTEGER(100*GETJOYZ(0)),0,25
PRINT " 0:"+GETJOYBUTTON(0,0)+" 1:"+GETJOYBUTTON(0,1)+" 2:"+GETJOYBUTTON(0,2),0,50
PRINT "RX:"+INTEGER(100*GETJOYRX(0))+" RY:"+INTEGER(100*GETJOYRY(0))+" RZ:"+INTEGER(100*GETJOYRZ(0)),0,75
PRINT "M X:"+mx+" Y:"+my+" 1:"+b1+" 2:"+b2,0,100
GETSCREENSIZE sx,sy
PRINT "ScSize: "+sx+"x"+sy,0,125
GETDESKTOPSIZE dx,dy
PRINT "DeSize: "+dx+"x"+dy,0,150
SHOWSCREEN
WEND


(As reported a while ago, the accelerator (RX or RY, not sure right now) of my PC joy is not read.

Kitty Hello

don't do setscreen in iOS please!!
Does it work then?

ampos

Standar display: works 100%

Retina display:
   -Vertical: Mouse coordinates are non-retina coordinates (x:0-320, y:0-480)
   -Horizontal: mouse coordinates crazy: x:0-480, y:320-640


pinete

Hi!,
any news on this point?
I'm having the same problem..
cheers.

ampos

I have not the new beta so I don't know.

Hark0

http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

ampos

Don't know when, but now it is fixed the iPhone 4 mouse/coordinates thing

Ian Price

Quote from: ampos on 2011-Mar-08
Don't know when, but now it is fixed the iPhone 4 mouse/coordinates thing
That was fixed in version 9.024, according to the Logfile.
I came. I saw. I played.