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?

screen size problem with smartphone


screen size problem with smartphone

Postby ThursdayNext » Nov 12, 2007 @ 9:37pm

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









10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
//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);
}
22 lines; 6 keywds; 2 nums; 72 ops; 1 strs; 5 coms    Syntactic Coloring v0.4 - Dan East  


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

Can someone help me??
ThursdayNext
pm Member
 
Posts: 9
Joined: Oct 26, 2007 @ 6:25pm


Postby edge » Nov 13, 2007 @ 10:55am

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?
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


fixed it

Postby ThursdayNext » Nov 13, 2007 @ 4:44pm

adding the line in resource.rc worked perfectly


thank you
bedankt
toda
merci
danke
tak
gracias
ThursdayNext
pm Member
 
Posts: 9
Joined: Oct 26, 2007 @ 6:25pm


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

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