Added extra methods WindowSystemInterface for controlling frame rate and resolution, and adde useCursor flag.

This commit is contained in:
Robert Osfield
2007-01-17 21:11:57 +00:00
parent 3ebc5efe05
commit 552293eb03
7 changed files with 36 additions and 3 deletions

View File

@@ -358,6 +358,9 @@ void GraphicsWindowX11::useCursor(bool cursorOn)
XFlush(_display);
XSync(_display,0);
}
_traits->useCursor = cursorOn;
}
void GraphicsWindowX11::init()
@@ -488,7 +491,7 @@ void GraphicsWindowX11::init()
_nullCursor = XCreatePixmapCursor( _display, pixmap, pixmap, &ncol, &ncol, 0, 0 );
}
useCursor(true);
useCursor(_traits->useCursor);
XSelectInput( _display, _window, ExposureMask | StructureNotifyMask |
KeyPressMask | KeyReleaseMask |