• 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