Let’s make something useful for a change

Home Forums Linux Gaming Let’s make something useful for a change

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #66140
    strider
    Participant

    As we all know, SDL2 is pretty much the only lib out there managing fullscreen application correctly. SDL1.2 games and games not using SDL at all tend to fuck up fullscreen pretty badly (not handling xrandr properly, grabbing all keyboard input volume control and alt+tab included, putting the game window in the middle of two screens).

    My goal is to make a very small lib based on the SDL2 code that handles fullscreen which could be easily incorporated into games using X11 and SDL1.2.

    The API should remain as simple as possible and stay as close as possible to the SDL2 naming.

    The lib should come with a nice developer-friendly documentation explaining what makes a proper fullscreen window.

    I’ve started reviewing the SDL2 code (src/video/X11/*) and this seems totally doable. I’ve also started experimenting with fullscreen windows on the PCSXR emulator. But my problem is that I lack expertise in C programming, being most used to web stuff in Python or system scripting. I have a very hard time getting anything done (but I’m getting better, slowly).
    So if anyone would like to see this happen in this lifetime, please give me a hand here. I’ve started a repo here: https://github.com/lutris/libfswindow and will give you commit rights if you want to contribute. The project uses an Apache 2 license to allow its use in any proprietary game.

    #71598
    Ryochan7
    Member

    I don’t know if you have heard about it but you might want to check out SDLHack. It is useful for being able to minimize fullscreen SDL 1.2 applications. I also use it to disable joystick support sometimes. The source code for SDLHack might be a useful resource for your project. http://www.jspenguin.org/software/sdlhack/

    #71604
    strider
    Participant

    yes, I’ll have to have a closer look at this, seems very interesting. Looks kind of similar to a project I’ve tried to work on before lutris
    https://launchpad.net/etswitch
    (There’s my name on Launchpad but the project was not mine, I just put it under version control)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.