Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Anyone running on a windows treo?


Postby BIGBEN » Feb 15, 2006 @ 1:16am

I've sent a test to my iPAQ hw6515(240x240) betatester.

The test should look like on an attached pixel on a QVGA device. When the stylus is pressed it saves a screenshot. On stylus move it should show the 3x3 red pixel dot under the stylus (true stylus coordinates used, no multiplication).

The grey square is 32x32 pixels in an output screenshot.
8 colors are repeated in the rows until y==240.
Press any button to quit.

I expect the screenshot wouldn't be the same as the program looks on 240x240 device. So I also ask my betatester to describe "is it looking the same, what differences"

There would be also interesting how it looks on Treo ;)

EDIT: Since the screenshot (I expect) wouldn't be very useful I also asked him to take a digital photo of the device's screen, if he can.
Attachments

[The extension gif has been deactivated and can no longer be displayed.]

QuickTest.zip
Zipped application for ARM/XScale
(32.58 KiB) Downloaded 314 times
User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby Kzinti » Feb 15, 2006 @ 8:00pm

fast_rx wrote:How do I tell pocketfrog/phal to not use GAPI?


I will need to release a new version of PocketHAL. Hopefully I will have time for this during the weekend.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Kzinti » Feb 21, 2006 @ 11:27pm

I am currently quite busy with life. We just made an offer on a house and I am trying to get a new position at my company. Busy busy. As soon as I have a few hours to spare, I will update PocketHAL to work properly on the Treo.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Kzinti » Feb 24, 2006 @ 7:14am

I have a fix. Release 0.7.7c is available for registered users. Just drop me an e-mail and I will send you the update.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby BIGBEN » Feb 24, 2006 @ 6:32pm

Thank you very much, Kzinti!

Release 0.7.7c
==============

Windows CE:

- Fixed GAPI emulation issue on Treo 700w. The screen size is now properly
reported as being 240x240 (and not 240x320).


Possibly dumb questions, but I have no Treo to test:

1. Does it mean that we do not need anything special to use this option (so PHAL automatically detects Treo and use this option)?

2. We do not need to include HI_RES_AWARE?

3. I assume, we should convert stylus coordinates on Treo manually (multiply y-coordinate by 4/3) as before?

4. If 3 is true, how to detect Treo 700w?

Thanks again ;)
User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby Presto » Feb 24, 2006 @ 11:40pm

I'm betting the fix is that PHAL will now use a 240x240 backbuffer, rather than 240x320. Since the screen isn't being resized, you shouldn't need to do anything with the stylus input.

In essence, it should work like other square screens now. Kzinti can answer that for sure, but I can't imagine him doing it any other way.

-John
User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby Kzinti » Feb 25, 2006 @ 12:06am

The way it works now is that I ask GDI what the screen dimensions are. Then I ask GAPI. If the results are different, I don't use GAPI. This is done to ensure that stylus input and screen dimensions always match.

So on the Treo, PocketHAL will now report a 240x240 display. You don't need to do anything with the stylus coordinates.

As far as I know, the HI_RES_AWARE flag only does something on Pocket PCs with screen dimensions different then 240x320. (And it doesn't do anything on Smartphones). I am pretty confident the flag doesn't do anything on the Treo.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby BIGBEN » Feb 25, 2006 @ 2:48pm

Thanks for explanation,

Finally I've got reply from my iPAQ hw6515 betatester.
The app that I posted here(based on previous PocketHal) running OK on his device.
Just down area is cropped.
Stylus position is OK (the same as on QVGA - no mult needed).

Currently updating !PyroManiA! for 240x240 support with new PHal :)
User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby Kak » Feb 26, 2006 @ 11:12am

Kzinti wrote:The way it works now is that I ask GDI what the screen dimensions are. Then I ask GAPI. If the results are different, I don't use GAPI. This is done to ensure that stylus input and screen dimensions always match.

So on the Treo, PocketHAL will now report a 240x240 display. You don't need to do anything with the stylus coordinates.

As far as I know, the HI_RES_AWARE flag only does something on Pocket PCs with screen dimensions different then 240x320. (And it doesn't do anything on Smartphones). I am pretty confident the flag doesn't do anything on the Treo.


but this would broke current applications which work correctly work with treo, isn't it? ( if any ;) )
User avatar
Kak
pm Member
 
Posts: 291
Joined: Jul 26, 2003 @ 12:24pm
Location: Zannarkand, Spira


Postby Kzinti » Feb 26, 2006 @ 4:56pm

Kak wrote:but this would broke current applications which work correctly work with treo, isn't it? ( if any ;) )


Err no. Since they would already be broken. The stylus input range doesn't match the screen dimensions reported by the Treo's GAPI anyways.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Feb 26, 2006 @ 5:33pm

I can see why some would want to run in the 320x240 scaled to 240x240 mode - if they handle the input scaling. I wouldn't, but maybe some games would look/play ok like that.

I have prepared a test version of lejjo with the new pocketHAL and can't get anyone to test it. I've posted over at treocentral.com asking for someone to test it out and no responses. I guess they are too busy complaining about apps that don't work right. :roll:
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Johan » Feb 27, 2006 @ 2:13pm

Hi,

As a sidenote, does anyone here know what the OEM string for the Treo is?

Sincerely
Johan
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[http://www.gapidraw.com]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby fast_rx » Feb 27, 2006 @ 4:32pm

Kzinti,

Screen rotation isn't handled correctly for square screens (as well as VGA ones, I suppose).

My version of pocketFrog has this in the game.cpp
Code: Select all









10 
//fixme: don't use hard coded values for width and height
void Game::DeviceToLogical( Point& P ) const
{
    switch (m_config.orientation)
    {
    case ORIENTATION_ROTATE90CCW:
        swap( P.x, P.);
        P.= 319 - P.x;
        break;
...
10 lines; 5 keywds; 1 nums; 26 ops; 0 strs; 1 coms    Syntactic Coloring v0.4 - Dan East  


This obviously makes an offset on the stylus for square screens.

Where should we be getting this value? I assume I wouldn't want to call GetDisplay->GetWidth() every time, any downside to adding a variable to the game class to store the height/width?
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Birdiestyle » Feb 27, 2006 @ 4:59pm

"Palm Treo 700w" is the OEM String Johan...

Doesnt the HI_RES_AWARE need to be used for the new WM5 Smartphones with QVGA. I cant get support to work in Gapidraw with 3.01 on these Smartphones and they are getting big, is PF working with it before or now after this change? Do you know if it works with GD 3.5 or your new version Johan?
A <a href="http://www.birdsoft.biz">bird</a> in the hand...
User avatar
Birdiestyle
pm Member
 
Posts: 144
Joined: Nov 8, 2001 @ 5:42pm
Location: Wisconsin


Postby Presto » Feb 27, 2006 @ 5:03pm

fast_rx,

I think Thierry's dropped support for PF and is focusing entirely on PHAL now. You should make the change and submit it to Frank, who's running the SourceForge project for PF now. Though I think Thierry could still tell you the proper way to get the correct value from PHAL.

-John
User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


PreviousNext

Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron