PocketMatrix forums

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

True VGA

Using this program, people can put there VGA device in true VGA mode.
http://www.pocketgear.com/software_detail.asp?id=14679

In normal VGA mode even though the screen is 480x640, Windows still maps the stylus to 240x320. In true VGA mode Winodws maps the stylus to 480x640. PocketHAL works fine in both modes, but is there a way to detect which VGA mode the user is using so I know how to handle the stylus?

By the way, the version that was tested was 0.7.3.

Thanks.
Try GetSystemMetrics() with SM_CXSCREEN and SM_CYSCREEN. They should return 240x320 or 480x640 depending on current mode.
Jobu · 15 Jun 2005, 17:49 UTC — SE_VGA
If you compile your program with this flag, you do not need to force it into 480X640 mode. Changing a compiler flag will allow the screen to be used @ full resolution. You can find this flag by going to

Project->Setting
Click on Link tab. At the bottom of the tab there is a text box with the title Project Options:

Replace: "/subsystem:$(CESubsystem)"
With: "/subsystem:WINDOWSCE,4.21"
There are not supposed to be quotes in the text box!!!

Make sure that if you compile it with these options it is only used on a handheld running WinCE 4.21. From what I understand each executable created by EVC++ 4.0 has a WinCE subsystem number. If the number is under 4.21 it will default to the 230x320 because it believes it is on an older handheld that does not support VGA mode. The default must be 4.20 or lower to make the application more portable.