• Show log

    Commit

  • Hash : 3046d55d
    Author : Cameron Gutman
    Date : 2022-08-12T22:02:26

    cocoa: Return an error if GetWindowDisplayIndex() is called too early
    
    SDL_CreateWindow() may call GetWindowDisplayIndex() to compute the position
    of a new window that the caller has requested to be placed on a certain
    display. Since we haven't fully constructed the window yet, our driverdata
    will be nil and we will fail to get the NSScreen (which is fine). However,
    we need to return an error (not 0, which is a valid display index) for
    SDL_GetWindowDisplayIndex() to know to figure out the display index itself.
    
    Fixes positioning new windows on secondary displays when using
    SDL_WINDOWPOS_CENTERED_DISPLAY() and SDL_WINDOWPOS_UNDEFINED_DISPLAY().
    

  • 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