PocketMatrix forums

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

Play 320*240 video on VGA PPC full screen

I have a VGA ppc :Dell X51v.
Now I use GledPlay play video on it.
Because of the video is 320*240 and the screen is 640*480,the video can't play full screen.
Then I set:
config.dwHighResolution = HighResolution::DISABLED;

This property enables or disables support for the high resolution screen devices. If it is disabled, a low resolution screen will be emulated for high resolution screen devices.

But it can't work.
How can I do it?
or How to set VGA screen to 320*240?
Provide please more information.
Windows version on PocketPC?
Which API provides output: GAPI, RawBuffer or DirectDraw? ( you can find out this in debug by setting breackpoint to
Code:
void* hardwareBuffer = backBufferHardware->beginScene();

in Display::flip() method and then in debug mode when program stops on this point press F11 and go to beginScene() method. Then you could se what API is used by class name of that method GAPIBackBuffer, RawBackBuffer or DirectDrawBackBuffer)

One thing you could try for now is to set CEUX resource of your project to 0 (all zeros) if it is set to 1, by this you will inform OS that your program is not designed for HIGH resoltion device.

Regards, Nomad.
I am a beginner.
PPC use windows mobile 5.0
I used the project in the File of GledPlay.
GledPlay->projects->Single State Game Template->WM2005

add
if(video.open(TEXT("001.mpg"))==ReturnCode::OK)
{//Ok, ready to decode.}
else{shutdown();}
to
InitialApplication::onInit(Surface* pBackBuffer, Application* application)
add
HRESULT hr = video.getNextFrame(&surface;);
switch(hr){case ReturnCode::OK:pBackBuffer->bltFast(0, 0, &surface;); break;
case ReturnCode::END_OF_VIDEO:shutdown(); break;
default:shutdown(); break;}
to
InitialApplication::onNextFrame(Surface* pBackBuffer, Panel* panel)

Just all!

I can't find CEUX in MSDN.
Can you explain it to me? :oops:
Thanks!