• Show log

    Commit

  • Hash : 4077f7a2
    Author : David Gow
    Date : 2021-08-03T20:55:45

    Update the Renderer dpi_scale on SIZE_CHANGED event (fix #4580)
    
    The Renderer logical scaling code scales mouse coordinates, and needs to
    take the window DPI into account on HIGHDPI windows. However, the
    variable which tracks this, renderer->dpi_scale, is set once when the
    renderer is created, and then not updated. In the event that the window
    is moved to another screen, or the screen DPI otherwise changes, this
    will be outdates, and potentially the coordinates will be all wrong.
    
    So let's update the dpi_scale on the SIZE_CHANGED event: it's at least a
    possibility that this will be issued on some OSes when DPI changes, and
    it's otherwise already handled by SDL_Renderer's event filter.
    

  • 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