Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectSHfullscreen Reply to this message
Posted byexecom_rt
Posted on05/27/02 07:32 AM



I've got a Ipaq 3630 with Pocket PC 2002.

Well the documentation come from Microsoft web site.

Using the latest version of MameCE, the upper bar with time is still visible and clicking on the lower part strongly flicker the rendering.

Also the application is not multitask friendly (the GAPI Resume and Suspend functions are never called which is no good).

I suggest to enable the new code, exactly as Microsoft said. Generally some developers want to skip some microsoft recommendation and when the hardware or operating system changes, the implementation does work anymore:

It might works on your pocket PC, but may not one newest hardware : Best example look the WhatsnewCE.txt from MameCE release 9.3:
I quote:

"Implemented the Ipaq 3800 display workaround: The Ipaq 3800 has a bug(*) which causes GAPI screen access to be delayed (creating a severe display redraw penalty)"


No offense, but this hack was performed by the author because some initialisation was missing (like shfullscreen for example).

I have no IPAQ 3800 but I'm sure at 99% that if the author had followed the Microsoft specs (Shfullscreen, etc..) the mamece will runs perfectly under GAPI and would run faster ...

In my optinion, the redraw penalty is due to the fact that the taskbars and other UI stuffs was still renderered ...

If you see the Gapidraw.com, Trust me I know a lot of developers doing that under DirectX and when the hardware changes, the program flaws because they did not respect Microsoft recommendations and need to patch their programs because they did removed some initialisation thinking the code was not necessary.

Finally the 'move' of the window is necessary for the mouse input for example, else the 0,0 would be physically at 0,26.



> I don't think it's needed: here's a clip out of the first GAPI example on Microsoft (the nearest thing to docs):
>
>
> hWnd = CreateWindow(szWindowClass, szTitle, WS_VISIBLE,
> CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL,
> hInstance, NULL);
> if (!hWnd)
> {
> return FALSE;
> }
> //When the main window is created using CW_USEDEFAULT the height of the menubar
> (if one
> // is created is not taken into account). So we resize the window after
> creating it
> // if a menubar is present
> {
> RECT rc;
> GetWindowRect(hWnd, &rc);
> rc.bottom -= MENU_HEIGHT;
> if (hwndCB)
> MoveWindow(hWnd, rc.left, rc.top, rc.right, rc.bottom, FALSE);
> }
>
>
>
> As you can see, the only magical thing which happens here is that it makes a
> window the size of the screen! Not very magical at all. The MENU_HEIGHT=26 looks
> to be a bit hacky even. I think I'd be happier with this code:
>
>
> int cx=0,cy=0;
> // Get desktop size
> cx=GetSystemMetrics(SM_CXSCREEN);
> cy=GetSystemMetrics(SM_CYSCREEN);
>
> hWnd=CreateWindow(L"WindowClass","My
> Win",WS_VISIBLE,0,0,cx,cy,NULL,NULL,wc.hInstance,NULL);
>
>
> I've tried this on iPaq and Jornada and it works fine - fullscreen display. No
> need for any SH* stuff.
> Tekhmaster, have you had any troubles with fullscreen?
> execom_rt - you said you had fullscreen troubles, which pocket pc model do you
> have?
>




-
Entire Thread
Subject  Posted byPosted On
*Move/Stylus support and suggestions..  execom_rt05/23/02 06:07 AM
.*Re: Move/Stylus support and suggestions..  Vidgamer06/27/02 11:28 PM
..*Re: Move/Stylus support and suggestions..  execom_rt06/28/02 05:10 AM
.*Re: Move/Stylus support and suggestions..  finaldave05/23/02 12:38 PM
..*Re: Move/Stylus support and suggestions..  execom_rt05/24/02 05:27 AM
...*Re: Move/Stylus support and suggestions..  finaldave05/24/02 06:52 AM
....*Re: Move/Stylus support and suggestions..  Tekhmaster05/24/02 03:59 PM
.....*Re: Move/Stylus support and suggestions..  execom_rt05/27/02 10:55 AM
......*Re: Move/Stylus support and suggestions..  fused06/10/02 08:30 PM
....*Re: Move/Stylus support and suggestions..  execom_rt05/24/02 09:13 AM
.....*Re: Move/Stylus support and suggestions..  finaldave05/25/02 07:19 AM
......*Re: Move/Stylus support and suggestions..  rjr05/29/02 09:23 PM
.......*Re: Move/Stylus support and suggestions..  finaldave05/30/02 07:31 AM
........*Re: Move/Stylus support and suggestions..  rjr06/01/02 10:48 AM
........*Re: Move/Stylus support and suggestions..  execom_rt05/30/02 09:03 AM
......*Re: Move/Stylus support and suggestions..  execom_rt05/27/02 12:02 PM
.....*Re: Move/Stylus support and suggestions..  execom_rt05/24/02 09:36 AM
......*Re: Move/Stylus support and suggestions..  finaldave05/25/02 08:27 AM
........SHfullscreen   execom_rt05/27/02 07:32 AM
........*Re: SHfullscreen   Tekhmaster05/28/02 06:45 PM
.........*conclusion  execom_rt05/29/02 07:48 AM
..........*Is it NOTHING to do with reading video memory  finaldave05/29/02 01:33 PM
...........*Modified MameCE version available  execom_rt05/30/02 06:00 AM
............*Re: Modified MameCE version available  finaldave05/30/02 07:23 AM
.............*Re: Modified MameCE version available  execom_rt05/30/02 08:46 AM
..............*Re: Modified MameCE version available  finaldave05/31/02 06:09 AM
...............*Is there a developer here ?  execom_rt05/31/02 08:48 AM
................*Re: Is there a developer here ?  Tekhmaster05/31/02 02:57 PM
.................*Re: Is there a developer here ?  finaldave06/02/02 09:09 PM
..................*Re: Is there a developer here ?  Tekhmaster06/02/02 11:47 PM
.........*Re: SHfullscreen   finaldave05/29/02 05:58 AM
..........*Re: SHfullscreen   Tekhmaster05/29/02 06:38 PM
...........*Re: SHfullscreen   execom_rt05/30/02 09:06 AM
...........*Re: SHfullscreen   finaldave05/29/02 07:33 PM
............*Re: SHfullscreen   Tekhmaster05/31/02 03:11 PM
............*Re: SHfullscreen   execom_rt05/30/02 06:03 AM
........*Re: SHfullscreen   finaldave05/27/02 11:34 AM
.........*Re: SHfullscreen   Tekhmaster05/31/02 03:04 PM
..........*Re: SHfullscreen   finaldave06/03/02 01:09 PM
.........*Re: SHfullscreen   execom_rt05/27/02 11:56 AM
..........*Re: SHfullscreen   thekINGpIN06/01/02 08:31 AM