OK, thank you. Has somebody put this into CVS?
John F. Fay
[mailto:freeglut-developer-admin@...]On Behalf Of
Sent: Wednesday, March 10, 2004 6:01 PM
Subject: [Freeglut-developer] patch against 2.2.0
here is previously patch updated for version 2.2.0 and formatted more
conformant (although not perfect). I left now the part out which skips
the following diff contains the following real bugfixes (FreeGLUT 2.0.1):
- Bugfix for video mode matching of gameglut, the frequency was compared
with itself, not with the values in XF86VidModeModeInfo.
- Free the XF86VidModeModeInfo memory (memory leak).
- Check a failure.
and the hacks:
- the gameglut implementation was not able to switch to fullscreen in
the highest defined resolution (in XF86Config), the window + surrounding
decorations must be smaller than the highest resolution, else the switch
failed. Another problem was also, that with some window managers the
window did not hide all other windows (e. g. panels, ...). My workaround
sets override_redirect to true to achieve fullscreen. Baisically it
works, but have a look on the XMoveWindow hack in freeglut_gamemode.c.
At least for KDE 3.1.4 there is a forced XMoveWindow necessary,
otherwise the GL rendering is displaced. Why is this necessary (remove
it and enjoy the effect...)???
Another thing occasionly (not really often) happening is that the GL
rendering is dog slow. I think I get sometimes not a direct-rendering
context, but what could lead to that?
Status: The switching works reliable now, tested with KDE, FVWM, MWM,
Problems: Occasionly not direct rendering, why the XMoveWindow?
visit my homepage http://www.berniw.org