This site is no longer active and is available for archival purposes only. Registration and login is disabled.

PocketHAL 1.0.6 Released


PocketHAL 1.0.6 Released

Postby Kzinti » Mar 29, 2009 @ 12:06am

Last edited by Kzinti on Jul 23, 2009 @ 4:58am, edited 1 time in total.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Strange behaviour using PocketHAL 1.06

Postby pacomac » May 26, 2009 @ 3:12pm

Ok, there could be a rational explanation for this problem, but its driving me nuts.

I have a couple of projects compiled for Windows Mobile 2003 SE (for backward compatibility) using PocketHAL 1.03. I've been testing these programs using the Windows Mobile 6 Professional QVGA Emulator specifically to test compatibility with 320x320 pixel devices as I don't have any to hand.

Using PocketHAL 1.03, I get back a screen buffer of 240x320 pixels after calling PHAL::Display::Create() (which uses the left 2/3 of the screen), but on version 1.06 I'm getting a 240x240 display which is being stretched to fill the entire display.

My projects do not have the HIRES aware flags set, and I'm passing values of dp.m_width = 0 and dp.m_height = 0 to PHAL::Display::Create(hWindow, dp).

Has anyone any ideas what is going on here? :roll:

NOTE: I've had a couple of people testing my project (compiled with PocketHAL 1.03 on the Samsung EPix i907 and it is returning 240x320 pixels. What should PocketHAL's default behaviour be on a 320x320 device?
pacomac
pm Member
 
Posts: 22
Joined: Sep 22, 2003 @ 2:39pm


Postby Kzinti » May 26, 2009 @ 6:36pm

What compiler / SDK are you using? More specifically, what subsystem version is used on the linker line?

If you link for Windows Mobile 6.0, then you don't need the hires flag... It will be as if it was always there.

On Windows Mobile 2003 SE, the flag needed to be added explicitly.

To answer your last question, I would expect a 320x320 screen if the hires flag is there or if you are linking for Windows Mobile 6 and above.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby pacomac » May 28, 2009 @ 12:01pm

pacomac
pm Member
 
Posts: 22
Joined: Sep 22, 2003 @ 2:39pm


Postby Kzinti » May 28, 2009 @ 6:58pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby pacomac » Jun 1, 2009 @ 3:44pm

pacomac
pm Member
 
Posts: 22
Joined: Sep 22, 2003 @ 2:39pm


Postby pacomac » Jun 9, 2009 @ 11:26am

There is also another bug I've found in PH 1.0.6.

If I link with the PocketPC 2003 SDK or the Windows Mobile 6 Professional SDK and run on any square screen device, the touch screen co-ordinates are rotated by 90 degrees. (i.e. If I tap the top left of the screen, the result is something gets selected at the top right).

Version 1.0.5 was fine, other than the bug I reported previously. I'm not sure why nobody else is reporting this problem!!
pacomac
pm Member
 
Posts: 22
Joined: Sep 22, 2003 @ 2:39pm


Postby hrissan » Jul 10, 2009 @ 8:02am

We've got a problem on Samsung i780 and the same problem is even on Emulators Pocket PC 5.0 240x240, 480x480 and Windows Mobile 6 Professional 240x240, 320x320, 480x480!!!

In PocketHAL 1.0.6 on square device the screen is rotated to the side (wrong orientation), while clicks are not rotated (they are in correct orientation)! So the clicks do not correspond to picture on the screen...
hrissan
pm Member
 
Posts: 30
Joined: Mar 10, 2007 @ 1:38pm


Postby Kzinti » Jul 21, 2009 @ 4:48am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Kzinti » Jul 21, 2009 @ 3:45pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Kzinti » Jul 23, 2009 @ 6:22am

Input orientation issue with square displays fixed in 1.0.7.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


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