Re: GAPI and VGA 480x640 mode
From: Robert A. Plourde Jr. (noone_at_hotmail.com)
Date: 02/24/05
- Next message: Paul G. Tobey [eMVP]: "Re: Date?"
- Previous message: Robert A. Plourde Jr.: "Re: iPAQ Wi-Fi connection problem"
- In reply to: Robert A. Plourde Jr.: "Re: GAPI and VGA 480x640 mode"
- Next in thread: Robert Levy [MS]: "Re: GAPI and VGA 480x640 mode"
- Reply: Robert Levy [MS]: "Re: GAPI and VGA 480x640 mode"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 24 Feb 2005 10:20:26 -0500
This is great but now I have a new problem. How can I programatically
switch between legacy mode and new mode? What I mean is, when the screen is
in landscape 640 X 480 mode, I want to use the new resolution. When the
screen is in portrait mode, I want it to be in the 240 X 320 mode. We have
two different sets of bitmaps for each resolution mode and I can switch
between the two. When we are in portrait mode, I can't have the display at
480 X 640, I need it to be in 240 X 320.
"Robert A. Plourde Jr." <noone@hotmail.com> wrote in message
news:2K7Td.27730$Cs.16350@okepread02...
> Thanks for the new info! I found it. I will switch to this mode in my
> program from now on.
>
> The HI_RES_AWARE resource item can be used to override this behavior for
> legacy applications. The operating system looks for this special resource
> item when the legacy application loads. The following procedure adds it to
> your program, using Microsoft eMbedded Visual C++®.
> Note Alternatively, you can add the following line to your resource file
> directly:
>
> HI_RES_AWARE CEUX {1} // To turn off the emulation layer
>
> To add the HI_RES_AWARE resource item to your program
> From the Insert menu, select Resource.
> Click the Custom button.
> Enter CEUX for the resource type.
> Set the resource data to 01 00.
> Click the Properties tab.
> Rename the item to "HI_RES_AWARE", including quotes. (If the quotes are
> omitted, HI_RES_AWARE will be incorrectly defined as a numeric value in
> resource.h, and you will need to go back and delete the line from
> resource.h.)
> Deselect the external file checkbox.
>
> "Robert Levy [MS]" <rlevy@online.microsoft.com> wrote in message
> news:Oz9KCZfGFHA.1500@TK2MSFTNGP09.phx.gbl...
> > Actually, we recommend against setting the subsystem to 4.21 since that
> > means that the executable won't run on WM 2003 (not Second Edition)
> devices.
> > Instead, you can add a native resource to your executable which will tag
> it
> > as being orientation/resolution aware. When the OS detects that, the
> > legacy-emulation layer gets disabled for that app. If you check out the
> > 2003 SE developer resource kit on MSDN, you'll find whitepapers,
samples,
> > and tools showing how to do this for both native and managed code.
> >
> > --
> > Robert Levy
> > Program Manager
> > Mobile Devices Product Group
> > http://blogs.msdn.com/windowsmobile
> >
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> >
> > Robert A. Plourde Jr. wrote:
> > > All that "DPI aware" means is that the EXE is set to need 4.21 as it's
> > > required operating version #. How you do this in C# I don't know.
> > >
> > > In embedded C++, go to Project Settings and select the link tab.
> > > Under project options, find the part that says
> > > /subsystem:$(CESubsystem) and change it to /subsystem:windowce,4.21
> > >
> > > "Nathan Lewis" <a-nlewis@online.microsoft.com> wrote in message
> > > news:AVSs$$cGFHA.400@TK2MSFTNGXA02.phx.gbl...
> > >> You will need to mark your application as "DPI aware" to get the
> > >> correct screen size values. Here are a few resources to get you
> > >> started developing for VGA devices:
> > >>
> > >> Developing DPI-Aware Applications
> > >>
> > >>
http://msdn.microsoft.com/library/en-us/dnwm2k3/html/dpi_awareness.asp
> > >>
> > >> How to Develop Orientation-Aware and DPI-Aware Applications for
> > >> Pocket PC
> > >>
> > >>
> > >
>
http://msdn.microsoft.com/library/en-us/dnwm2k3/html/orientation_dpi_aware_a
> > >> pps.asp
> > >>
> > >> What's New for Developers in Windows Mobile 2003 Second Edition
> > >> Software
> > >>
> > >
http://msdn.microsoft.com/library/en-us/dnwm2k3/html/whatsnew2003se.asp
> > >>
> > >>
> > >> ---
> > >>
> > >> Nathan Lewis
> > >> Microsoft Mobile and Embedded Devices Developer Support
> > >>
> > >> This posting is provided "AS IS" with no warranties, and confers no
> > >> rights.
> > >>
> > >>
> > >>
> > >>
> > >> --------------------
> > >> From: stell@chez.com (Pixel)
> > >> Subject: GAPI and VGA 480x640 mode
> > >> Date: 21 Jun 2004 05:31:22 -0700
> > >>
> > >>
> > >> Hello,
> > >>
> > >> I have a Toshiba e800 and I have just installed the Toshiba Windows
> > >> Mobile 2003
> > >> update to activate the VGA (480x640) mode for the interface.
> > >> So it's great, the screen resolution is better, fonts are smoother
> > >> etc.
> > >> The problem is that GAPI's GXGetDisplayProperties() returns me that I
> > >> am still in 240x320 and my GAPI application is drawn in 240x320, so
> > >> GAPI emulate the QVGA mode instead of activating the real VGA mode.
> > >> Before updating my PDA, I used myVGA, a tweaky tool to activate the
> > >> VGA mode and, GAPI was correctly set to 480x640.
> > >>
> > >> So, how to set the GAPI's display properties to make VGA games ?
> > >>
> > >> Thanks a lot
> >
> >
>
>
- Next message: Paul G. Tobey [eMVP]: "Re: Date?"
- Previous message: Robert A. Plourde Jr.: "Re: iPAQ Wi-Fi connection problem"
- In reply to: Robert A. Plourde Jr.: "Re: GAPI and VGA 480x640 mode"
- Next in thread: Robert Levy [MS]: "Re: GAPI and VGA 480x640 mode"
- Reply: Robert Levy [MS]: "Re: GAPI and VGA 480x640 mode"
- Messages sorted by: [ date ] [ thread ]