I'm rather exasperated with this problem. For PC builds I have no problem, but I cannot call OpenDisplay with success on an actual PPC. I am trying to use my own code instead of CGapiApplication.
CGapiApplication works fine in the Plasma demo. I am creating the window in the exact same way using the same wndclass. I've tried both MFC windows and a regular window created with CreateWindowEx exactly as is done in CGapiApplication. I've stepped through the plasma code and am using the exact same parameters to SetDisplayMode and OpenDisplay.
This is exactly how those routines are called in the Plasma demo:
Yet that fails in my other app.
What specific conditions will cause OpenDisplay to fail with GDERR_UNSUPPORTEDMODE? The header file says "Unsupported display resolution or incompatible device", but I assume there are other conditions that can fail and return the same error. Obviously the device is supported (iPaq 3630) because it works with the other demos. I've tried just about every possible combination of SetDisplayMode and OpenDisplay with no success.
Dan East
CGapiApplication works fine in the Plasma demo. I am creating the window in the exact same way using the same wndclass. I've tried both MFC windows and a regular window created with CreateWindowEx exactly as is done in CGapiApplication. I've stepped through the plasma code and am using the exact same parameters to SetDisplayMode and OpenDisplay.
This is exactly how those routines are called in the Plasma demo:
- Code:
rc=g_display.SetDisplayMode(1 /* == GDDISPMODE_NORMAL*/);
rc=g_display.OpenDisplay(2 /* == GDDISPLAY_FULLSCREEN*/, hWnd, 320, 240, 0, 0, 0, 60);
Yet that fails in my other app.
What specific conditions will cause OpenDisplay to fail with GDERR_UNSUPPORTEDMODE? The header file says "Unsupported display resolution or incompatible device", but I assume there are other conditions that can fail and return the same error. Obviously the device is supported (iPaq 3630) because it works with the other demos. I've tried just about every possible combination of SetDisplayMode and OpenDisplay with no success.
Dan East