• Show log

    Commit

  • Hash : d23d9c88
    Author : Sam Lantinga
    Date : 2014-07-07T23:26:34

    Fixed bug 2421 - SDL_RenderCopyEx off by one when rotating by 90 and -90
    
    chasesan
    
    When using SDL_RenderCopyEx, I get a problem on some platforms where the output is offset by +/-1 on other platforms and not on others. I tried it with a center of both 0,0 (and offsetting by width/height) and NULL (for centered).
    
    The rotation involved is 90, and/or -90 rotation. The rotation was a constant, no arithmetic was involved when inputting it into SDL_RenderCopyEx.
    
    This occurred with 32x32, 24x24, and 16x16 texture sizes. I apologize that I don't have more precise information, as I received the information as a bug report myself. But I have tracked the problem down to here.
    
    My program requires pixel perfect alignment on several different platforms, so this is something of a showstopper for me.
    
    --
    
    Sylvain
    
    It appears the RenderCopyEx is done as expected,
    this is the red rectangle which is not correctly positionned !
    
    So, here's patch with a 0.5 float increment, like for opengles2, for DrawLines, and also Draw Points.
    

  • 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