1
0
Fork 0

Modified Files:

src/GUI/dialog.cxx src/GUI/menubar.cxx
	src/Include/config.h-msvc8 src/Main/fg_os_osgviewer.cxx:
	Olaf Flebbe: build fixes for osgviewer on win32.
This commit is contained in:
frohlich 2007-05-30 13:15:14 +00:00
parent 8bce048752
commit b59e3fe6ec
4 changed files with 11 additions and 3 deletions

View file

@ -748,7 +748,7 @@ FGDialog::setupObject (puObject * object, SGPropertyNode * props)
for (unsigned int i = 0; i < bindings.size(); i++) {
unsigned int j = 0;
SGPropertyNode *binding;
SGPropertyNode_ptr binding;
while (dest->getChild("binding", j))
j++;

View file

@ -188,7 +188,7 @@ FGMenuBar::make_menu (SGPropertyNode * node)
for (unsigned int k = 0; k < bindings.size(); k++) {
unsigned int m = 0;
SGPropertyNode *binding;
SGPropertyNode_ptr binding;
while (dest->getChild("binding", m))
m++;

View file

@ -1,5 +1,8 @@
/* Special single config.h for MSVC6 build - Geoff McLane - 23 July, 2003 */
/* Special single config.h for MSVC8 build */
#define ENABLE_OSGVIEWER
#define PU_USE_NATIVE
/* Define to enable plib joystick support */
#ifndef ENABLE_PLIB_JOYSTICK

View file

@ -118,6 +118,11 @@ void fgOSOpenWindow(int w, int h, int bpp,
traits->windowDecoration = true;
traits->width = w;
traits->height = h;
#ifdef WIN32
// Ugly Hack, why does CW_USEDEFAULT works like phase of the moon?
traits->x = 100;
traits->y = 100;
#endif
traits->supportsResize = true;
}