PocketMatrix forums

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

screen size problem with smartphone

ThursdayNext · 12 Nov 2007, 20:37 UTC
I am running the View3D demo code under Visual Studio 2005 using the Windows Mobile 5.0 Smartphone SDK. When I render the 3D model it always renders in a square area in the center on the screen surrounded by a black frame in both the emulator and on the device (Samsung Blackjack). I can not get it to using the full screen for displaying the model. My init code looks like this


Code:

//Configure framework
ERESULT ClassMain::OnFrameworkConfig(EFRAMEWORKCONFIG *config)
{
config->maxfps = 60; //Limit the maximum frames per second by 60
config->flags = 0; //No extra flag options
config->smartfps = true; //Enable smart fps lock managing
return(E_OK);
}

//Configure display
ERESULT ClassMain::OnDisplayConfig(EDISPLAYCONFIG *config)
{
ClassEStd::StrCpy(config->caption, "View 3D");
config->icon = IDI_MAIN;
config->width = GetSystemMetrics(SM_CXSCREEN);
config->height = GetSystemMetrics(SM_CYSCREEN);
config->orientation = DOR_AUTO;
config->engineconsole = false;
config->fullscreen = true;
config->fullscreenmouse = true;
return(E_OK);
}


I saw a reference to ERS_REQUIREHIGHRES in this forum, but I believe it has been depricated.

Can someone help me??
Hi,

We recommend reading through the Getting Started tutorial here: http://www.edgelib.com/index.php?node=38

It explains how to create a resource.rc file which you need to disable GAPI emulation on your device. After creating the file, read the 'Native high-resolution applications' chapter on that page.

However, it's odd that it happens when building with the Windows Mobile 5 SDK. Are you sure it targets the Windows Mobile 5 SDK and uses the Windows Mobile 5 EDGELIB library?
ThursdayNext · 13 Nov 2007, 15:44 UTC — fixed it
adding the line in resource.rc worked perfectly


thank you
bedankt
toda
merci
danke
tak
gracias