[The extension gif has been deactivated and can no longer be displayed.]
- Fixed GAPI emulation issue on Treo 700w. The screen size is now properly
reported as being 240x240 (and not 240x320).
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.
Kak wrote:but this would broke current applications which work correctly work with treo, isn't it? ( if any ;) )
//fixme: don't use hard coded values for width and height
void Game::DeviceToLogical( Point& P ) const
swap( P.x, P.y );
P.x = 319 - P.x;
10 lines; 5 keywds; 1 nums; 26 ops; 0 strs; 1 coms Syntactic Coloring v0.4 - Dan East