Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Play 320*240 video on VGA PPC full screen


Play 320*240 video on VGA PPC full screen

Postby pytyj » Mar 29, 2007 @ 12:40pm

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?
pytyj
pm Member
 
Posts: 4
Joined: Mar 29, 2007 @ 3:41am


Postby Nomad » Mar 29, 2007 @ 3:12pm

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: Select all

void* hardwareBuffer = backBufferHardware->beginScene();
1 lines; 1 keywds; 0 nums; 7 ops; 0 strs; 0 coms    Syntactic Coloring v0.4 - Dan East  

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.
Nomad
pm Member
 
Posts: 76
Joined: Oct 28, 2006 @ 8:21pm
Location: Ukraine, Kiev


Postby pytyj » Mar 30, 2007 @ 2:14am

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!
pytyj
pm Member
 
Posts: 4
Joined: Mar 29, 2007 @ 3:41am


Return to GledPlay


Sort


Forum Description

Game Engine for Embedded Devices. Simple, complete, and powerful. Focused on the game.

Moderators:

Matias, Sergio

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