• Show log

    Commit

  • Hash : 84808ea4
    Author : David Gow
    Date : 2021-10-22T17:48:32

    video: Add SDL_PremultiplySurfaceAlphaToARGB8888()
    
    A number of video backends need to get ARGB8888 formatted surfaces with
    premultiplied alpha, typically for mouse cursors. Add a new function to
    do this, based loosely on legacy_alpha_premultiply_ARGB8888() from the
    KMSDRM backend.
    
    The new function, SDL_PremultiplySurfaceAlphaToARGB8888() takes two
    arguments:
    - src: an SDL_Surface to be converted.
    - dst: a buffer which is filled with premultiplied ARGB8888 data of the
      same size as the surface (assuming pitch = w).
    
    This is not heavily optimised: it just repeatedly calls SDL_GetRGBA() to
    do the conversion, but should do for now.
    

  • 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