• Show log

    Commit

  • Hash : 7c60bec4
    Author : Sam Lantinga
    Date : 2018-01-03T10:58:58

    Fixed bug 4018 - Implement SDL_GetWindowBordersSize() under Windows/Win32/WinAPI
    
    Ismael Ferreras Morezuelas (Swyter)
    
    As a new year gift I have implemented the Windows version of SDL_GetWindowBordersSize(). I needed it for auto-selecting a cozy window size for the game I'm currently working on and noticed that it only worked under X11, so I thought it could be a good excuse to contribute back more stuff. The Mercurial patch is attached as a .diff file. Let me know what you think.
    
    Happy 2018 to all the SDL2 devs and users!
    
    --
    
    PS: Keep in mind that Windows 10 includes the 8px invisible grip borders as part of the frame. There's a way of detecting if Aero/DWM is being used and ask only for the visible rect, but I believe that GetWindowRect() is doing that for a reason and working as intended, so I haven't changed it. (See [2])
    
    
    References:
    [1]: http://www.firststeps.ru/mfc/winapi/r.php?72
    [2]: https://stackoverflow.com/a/34143777/674685
    [3]: https://stackoverflow.com/a/431548/674685
    [4]: https://wiki.libsdl.org/SDL_GetWindowBordersSize
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w thodg_l www_kmx_io thodg
    Tags

  • README.txt

  •                          Simple DirectMedia Layer
    
                                      (SDL)
    
                                    Version 2.0
    
    ---
    https://www.libsdl.org/
    
    Simple DirectMedia Layer is a cross-platform development library designed
    to provide low level access to audio, keyboard, mouse, joystick, and graphics
    hardware via OpenGL and Direct3D. It is used by video playback software,
    emulators, and popular games including Valve's award winning catalog
    and many Humble Bundle games.
    
    More extensive documentation is available in the docs directory, starting
    with README.md
    
    Enjoy!
    	Sam Lantinga				(slouken@libsdl.org)