• Show log

    Commit

  • Hash : 1a544145
    Author : Sam Lantinga
    Date : 2017-08-12T15:21:26

    Fixed bug 3309 - SDL_ConvertSurface adds AlphaMod when input surface has ColorKey
    
    Sylvain
    
    Let's you have a SDL_Surface that has ColorKey, but no Alpha Modulation.
    When this surface is duplicated with SDL_ConvertSurface function, the result has ColorKey and Alpha Modulation (BLEND, and Opaque 255).
    
    I think SDL_ConvertSurface should strictly keeps the input format.
    
    
    example
    =======
    
    SDL_Surface *input; // ... Set up a surface with ColorKey and no AlphaMod
    
    SDL_Surface *output = SDL_ConvertSurface(input, input->format, input->flags);
    
    // "output" surface has a ColorKey but *also* AlphaMod (BLEND, and Opaque 255).
    

  • 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 www_kmx_io thodg thodg_l
    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)