PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Touchscreen offset on Treo

Has anyone else had a problem with the touchscreen values being offset vertically - on a treo 700w? I don't have access to the device, but I'm being told that they have to click below the buttons in my game for the click to register. They claim this problem is with several applications - not just mine.

This game works fine on another square screen device as well as the newer emulator with the square configuration. So I'm a bit lost as to what may be the problem.
Did you tried on the Treo700w emulator?

Do you know that by default, the Treo700w emulate a 240*320 screen and resize it in realtime?

It is possible that the input are not scaled to match..

You should try to use the raw framebuffer access, to write directly in the screen and bypass the resize...

However it seems that the framebuffer is not 16bits, but 32bits..
StephC wrote:Did you tried on the Treo700w emulator?

Do you know that by default, the Treo700w emulate a 240*320 screen and resize it in realtime?

It is possible that the input are not scaled to match..

You should try to use the raw framebuffer access, to write directly in the screen and bypass the resize...

However it seems that the framebuffer is not 16bits, but 32bits..


I know the 240*320->240*240 resize (well, if they resized that for compatibility, why didn't they resized the stylus input???) but I didn't know of the 32 bits display (and neither see the point, really)

I think that if you're using the HI_RES_AWARE the resize won't be done then, and you'll end with a 240x240 device (well, maybe it works for your problems)

I've had lots of problems with the 700w and I've decided to drop support for it until I can get a device to test (and it's unlikely that I get one so...)
Thanks for the info guys.

I'll have to get them to send me a screen shot to see if it is in fact stretching it from x320 to x240...

Is the emulator you're talking about the one by StyleTap?

I wouldn't want to add the hires aware flag because I do not want the game to run in VGA mode on other devices. It would kill performance (I think). I'd rather just have 240x320 or 240x240. There's not a square screen aware flag you can set somewhere is there? (other than the one during the install process in the .inf)
I am fairly certain the Treo is a simple 240x240 16bit display...

GETRAWFRAMEBUFFER
cxPixels:240
cyPixels:240
cxStride:2
cyStride:480
pFramePointer: be201000
wBPP: 16
wFormat: 1
Yes, it's 240x240 - but it will emulate a 240x320 screen under certail situations.

I think the problem is that it is emulating the touchscreen as 320 but the screen is 240 (or the other way around). I think pocketFrog/PHal is being addressed by a new release.

I seem to have lost my beta tester - so I haven't been able to try the HI_RES_AWARE flag to see if it affects it. If anyone has a WM Treo, let me know.