#39 Video mode matching code, memory leaks, fullscreen


Hi All

the following diff contains the following real bugfixes
(FreeGLUT 2.2.0):
- 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, WindowMaker.

Problems: Occasionly not direct rendering, why the

bye, Bernhard.


  • Bernhard Wymann

    Bernhard Wymann - 2004-03-31

    Above described patch against 2.2.0

  • Sven Panne

    Sven Panne - 2005-01-03
    • priority: 5 --> 6
  • Sven Panne

    Sven Panne - 2005-01-03

    Logged In: YES

    I've incorporated (slight variations) of your 3 "real" bugfixes, the
    "hacks" are still open. I've raised the bug priority a bit because a
    full screen game mode which is not fully functional (still some
    decorations left and scrollable) is rather uncool.

  • John F. Fay

    John F. Fay - 2006-09-22

    Logged In: YES

    Is this still relevant?

    - John


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks