nqsa / nebula3

Automatically exported from code.google.com/p/nebula3
0 stars 1 forks source link

the DisplayDevice's DisplayMode is not correct #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
the DisplayMode's width & height is ought to the Window's client width & 
height, instead of Window's width & height. Therefore, the render target 
size is wrong, so the text/image is not so clear.

What version of the product are you using? On what operating system?
Nebula3 SDK Sep 2008

Please provide any additional information below.
//-------------------------------------------------------------------------
-----
/**
    Open the application window.
*/
bool
Win32DisplayDevice::OpenWindow()
{
.......
    // the rendering area is not the whole window
    RECT rect;
    GetClientRect(this->hWnd, &rect);
    this->displayMode.SetWidth(rect.right);
    this->displayMode.SetHeight(rect.bottom);

    return true;
}

Original issue reported on code.google.com by xoyoj...@gmail.com on 14 Dec 2008 at 4:27

GoogleCodeExporter commented 9 years ago
this bug will also cause nVidia's PerfHUD could not be operated by mouse, 
because 
the coordinate is wrong

Original comment by xoyoj...@gmail.com on 14 Dec 2008 at 4:29