• Show log

    Commit

  • Hash : 316ff384
    Author : Sam Lantinga
    Date : 2019-06-08T17:43:23

    Fixed bug 4526 - replace SDL_RW* macros with functions for using in bindings
    
    ace
    
    I got this bug in SDL_ttf:
    https://bugzilla.libsdl.org/show_bug.cgi?id=4524
    Sylvain proposed solution:
    SDL_RWseek(RWops, 0, RW_SEEK_SET);
    
    And it works, but i can use it my project, because it written in C# with SDL2-CS wrapper and there not export for macroses:
    #define SDL_RWsize(ctx)         (ctx)->size(ctx)
    #define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence)
    #define SDL_RWtell(ctx)         (ctx)->seek(ctx, 0, RW_SEEK_CUR)
    #define SDL_RWread(ctx, ptr, size, n)   (ctx)->read(ctx, ptr, size, n)
    #define SDL_RWwrite(ctx, ptr, size, n)  (ctx)->write(ctx, ptr, size, n)
    #define SDL_RWclose(ctx)        (ctx)->close(ctx)
    
    Therefore, I suggest replacing this macros with functions so that they can be exported and used in bindings
    

  • 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