PocketMatrix forums

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

Fullscreen on the PC?

Hi,

I just ported by PPL language to the PC and using PocketFrog 0.8.1. I would like to know if it's possible to use a different resolution than 240 x 320 and also how to switch to fullscreen mode?
I was just about to post how easy it was to modify PF for different window sizes, but I thought I'd make sure since what I had done was pre-PHAL.

To put it simply, it didn't work for some reason.

What I've done was to create 2 new items in the Frog::Config structure called desktopHeight & desktopWidth

These are defaulted to 320 & 240, then used in the game.cpp around line 114 to set the size of the window.
This worked with PFrog 0.7...
Looks like the PHAL portion below that is affecting it, and I tried passing the m_config.desktopHeight, etc, to it as well - but it seems to have no effect.

I think Thierry is on vacation, so maybe he can clear this up when he returns. The main thing is that is was possible, and still should be with a little tweak hear and there.
Yeah, pretty strange the width & height don't work. I think they shouldn't be defaulted. But hey, what do I know about PocketHAL! :) Unfortunately I use PocketFrog 0.8.1 and this uses PocketHAL, so I cannot make that change. :(

And to make a window fullscreen, how do you do it? If I set the window size to the desktop size, only the 240x320 portion is actually drawn.
If you've got the window to be anything other than 240x320, you've gotten farther than I...

I think to get the fullscreen, you'd use
SW_SHOWMAXIMIZED in the ShowWindow() function...

I assume you messed with the game.cpp file to set the window size... Correct?
Did you try modifiy the code just below the
PHAL::DisplayParameters params;
params.m_orientation = m_config.orientation;

and add something like
params.m_height = 640;
params.m_width = 480;


It looks like the size has to be sent to both PFrog and PHAL, but maybe I'm missing something.
Yep, I did this:

params.m_height = dwWidth;
params.m_width = dwHeight;

I don't use the game framework, I use my own CreateWindowEx() window. Maybe this is something you can try? The WS_MAXIMIZED will work you think? I will try it and get back to you.
The SW_SHOWMAXIMIZED doesn't do anything. I guess we'll have to wait for Thierry to come back.
The next release of PocketHAL should have support for fullscreen apps on the desktop. I already have it working here. It's now just a matter of properly defining the API and testing it.
Now, that is excellent news Thierry. Will you support different resolutions in fullscreen also?
kornalius wrote:Now, that is excellent news Thierry. Will you support different resolutions in fullscreen also?


PocketHAL will support all the resolutions that your video card does.
Oh great. Thanks.
Thierry, not to be pushy or anything, we do you plan to release the next version? I would like to include it into PPL.
Currently the Palm port is taking all my time. Unless there is a critical bug, I don't want to update the current release.

My intention is to release fullscreen and windowed mode on all platforms at the same time (PC, WinCE, Palm and Symbian).