Skip to content

Commits on Jan 23, 2021

  1. renamed SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H to SDL_HAVE_MACHINE_JO…

    …YSTICK_H
    
    --HG--
    branch : SDL-1.2
    sezero committed Jan 23, 2021

Commits on Jan 22, 2021

  1. minor cleanup to os2 joystick code.

    --HG--
    branch : SDL-1.2
    sezero committed Jan 22, 2021
  2. os/2: imported new video driver (os2grop) authored by Andrey Vasilkin.

    also updated README.OS2, extracted Watcom-OS2.zip.
    
    --HG--
    branch : SDL-1.2
    sezero committed Jan 22, 2021

Commits on Jan 2, 2021

  1. joystick/linux: remove deadzone and output axis values in correct range

    fixes bug #5241 ( https://bugzilla.libsdl.org/show_bug.cgi?id=5241 ) --
    patch from pj5085.
    
    --HG--
    branch : SDL-1.2
    sezero committed Jan 2, 2021

Commits on Dec 30, 2020

  1. SDL_x11events.c: properly handle input focus events (fix bug #5426)

    From maxi@daemonizer.de:
    
    Since some time I stated to observe an annoying bug with the forward
    movement suddenly stopping while I was still pressing the corresponding
    key for the forward movement. Releasing and pressing the key again
    continued the movement. I observed this in the game "Unreal Tournament
    2004", but other software is probably also affected. The stop basically
    happens after a few minutues of pressing the key, though the time needed
    to reproduce the issue is not constant.
    
    While investigating the issue I found it started with a commit [1] in
    the Xorg xserver. Digging deeper into the code I found two commits [2]
    [3] in libsdl2 which looked like they would also fix the issue in
    libsdl1.2. I backported these two commits to the libsdl1.2 in Debian
    and can confirm that the bug got fixed by this.
    
    [1] https://cgit.freedesktop.org/xorg/xserver/commit/?id=c67f2eac56518163981af59f5accb7c79bc00f6a
    [2] https://hg.libsdl.org/SDL/rev/a1c4c17410e8
    [3] https://hg.libsdl.org/SDL/rev/764129077d18
    
    --HG--
    branch : SDL-1.2
    sezero committed Dec 30, 2020

Commits on Nov 15, 2020

  1. coreaudio: change outputAudioUnit type to AudioComponentInstance.

    --HG--
    branch : SDL-1.2
    sezero committed Nov 15, 2020

Commits on Nov 14, 2020

  1. Fixed bug 5328 - fast paths for 24/32-bit blitting on SDL-1.2

    (Thanks Cameron Cawley for back-porting the patch of bug 4503)
    
    --HG--
    branch : SDL-1.2
    1bsyl committed Nov 14, 2020

Commits on Nov 13, 2020

  1. SDL-1.2: fix crash in CPU_haveARMSIMD()

    --HG--
    branch : SDL-1.2
    1bsyl committed Nov 13, 2020

Commits on Oct 25, 2020

  1. os2/SDL_sysjoystick.c: move struct _transaxes oot of struct joystick_…

    …hwdata
    
    --HG--
    branch : SDL-1.2
    sezero committed Oct 25, 2020

Commits on Oct 21, 2020

  1. SDL_os2fslib.c (os2fslib_PumpEvents): replace difftime with DosQueryS…

    …ysInfo
    
    (noticed in an SDL os/2 modification by 'sava'
    http://bauxite.sakura.ne.jp/software/os2/#sdl )
    
    --HG--
    branch : SDL-1.2
    sezero committed Oct 21, 2020
  2. SDL_os2fslib.c: whitespace / code style tidy-up

    --HG--
    branch : SDL-1.2
    sezero committed Oct 21, 2020

Commits on Oct 20, 2020

  1. video, SDL_os2fslib.c: use calloc instead of malloc where it's suitable

    --HG--
    branch : SDL-1.2
    sezero committed Oct 20, 2020
  2. video, SDL_os2fslib.c: changed struct BMPINFO to be more compatible

    --HG--
    branch : SDL-1.2
    sezero committed Oct 20, 2020
  3. os2/SDL_systimer.c: removed the watcom-only asm

    --HG--
    branch : SDL-1.2
    sezero committed Oct 20, 2020

Commits on Oct 18, 2020

  1. os2: replace a few "not enough memory" SetError()s with SDL_OutOfMemo…

    …ry()
    
    --HG--
    branch : SDL-1.2
    sezero committed Oct 18, 2020
  2. joystick/os2: add back the driver with joyos2.h inclusion removed,

    ... with os2 joystick driver defs based on docs at edm2.com && in
    old drivers available at hobbes.nmsu.edu and www.os2site.com
    
    Watcom-OS2.zip updated accordingly.
    
    --HG--
    branch : SDL-1.2
    sezero committed Oct 18, 2020

Commits on Sep 22, 2020

  1. fix -Wparentheses warning after commit 1c7030e282b0

    --HG--
    branch : SDL-1.2
    sezero committed Sep 22, 2020
  2. joystick/linux: Fix invalid coef when axis min > axis max

    When the kernel reports absinfo.minimum > absinfo.maximum, the
    coefficient value was previously incorrectly calculated.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    ---
     src/joystick/linux/SDL_sysjoystick.c | 5 ++++-
     1 file changed, 4 insertions(+), 1 deletion(-)
    
    --HG--
    branch : SDL-1.2
    pcercuei committed Sep 22, 2020
  3. video/fbcon: Remove useless wait-for-vblank ioctl

    This ioctl never made it to upstream Linux.
    Besides, with KMS drivers page-flipping already happens in the vblank.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    ---
     src/video/fbcon/SDL_fbvideo.c | 4 ----
     1 file changed, 4 deletions(-)
    
    --HG--
    branch : SDL-1.2
    pcercuei committed Sep 22, 2020
  4. video/fbcon: Allow running as non-root

    The /dev/ttyX nodes obey the same rules as others, it's possible to use
    them as non-root users provided that the access rights bits are
    correctly set.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    ---
     src/video/fbcon/SDL_fbevents.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    --HG--
    branch : SDL-1.2
    pcercuei committed Sep 22, 2020
  5. video/fbcon: Implement triple-buffering

    Implement triple-buffering using a dedicated thread which will wait on
    VSYNC and then flip the two back buffers.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    ---
     include/SDL_video.h           |   1 +
     src/video/fbcon/SDL_fbvideo.c | 157 +++++++++++++++++++++++++++++++---
     src/video/fbcon/SDL_fbvideo.h |  19 +++-
     3 files changed, 166 insertions(+), 11 deletions(-)
    
    --HG--
    branch : SDL-1.2
    pcercuei committed Sep 22, 2020
  6. video/fbcon: Fix keyboard input when not launched from

     shell
    When not started from a shell, SDL was segfaulting while trying to
    detach the process from the controlling terminal.
    
    However, it doesn't make any sense for an SDL app to detach from
    its controlling terminal, unless the app is a daemon. Since we
    have never seen a SDL app detach from its controlling terminal,
    even when starting it from a shell, the feature was probably broken.
    Thus, the code has been dropped.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    ---
     src/video/fbcon/SDL_fbevents.c | 11 -----------
     1 file changed, 11 deletions(-)
    
    --HG--
    branch : SDL-1.2
    pcercuei committed Sep 22, 2020
  7. video/fbcon: Allow exiting without clearing the

     framebuffer
    By setting the environment variable SDL_FBCON_DONT_CLEAR, the
    application won't clear the framebuffer when exiting.
    
    We use it inside an app launcher, which will set this variable before
    exiting, in order for the loading screen to stay visible until the
    launched application takes hand.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    ---
     src/video/fbcon/SDL_fbvideo.c | 15 +++++++++------
     1 file changed, 9 insertions(+), 6 deletions(-)
    
    --HG--
    branch : SDL-1.2
    pcercuei committed Sep 22, 2020
  8. video/fbcon: Clear framebuffer at init

    When the video subsystem is initialized, the framebuffer might not be in
    the video mode that the application targets. In that case, if we don't
    clear the framebuffer, for a short moment the display will show the
    previous image distorded by the mode change.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    ---
     src/video/fbcon/SDL_fbvideo.c | 3 +++
     1 file changed, 3 insertions(+)
    
    --HG--
    branch : SDL-1.2
    pcercuei committed Sep 22, 2020
  9. video/fbcon: Fix double buffering with non-fullscreen

     resolution
    If an exact resolution match is not found, SDL will accept a higher
    resolution and add black bars around it. For example, when 320x200 is
    requested by only 320x240 is available, it will add 20 black lines on
    the top and the bottom of the screen. The surface that SDL returns to
    the application will look like it actually got 320x200.
    
    When double buffering, the actual video mode's height should be used
    instead of the height before adding the black borders. For the pixel
    pointer this was done correctly, but for the vertical panning offset
    the wrong height was used.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    ---
     src/video/fbcon/SDL_fbvideo.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    --HG--
    branch : SDL-1.2
    pcercuei committed Sep 22, 2020
  10. joystick/linux: Allow for custom joystick names

    When not using the old Linux input event interface, SDL parses the
    name of a device to know what it's capable of. It expects the
    name to match the following string: "Analog %d-axis %d-button %d-hat".
    
    This patch allows to use devices with a custom name.
    For instance: "My Joystick Device (Analog 2-axis 6-button 2-hat)"
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    ---
     src/joystick/linux/SDL_sysjoystick.c | 7 ++++---
     1 file changed, 4 insertions(+), 3 deletions(-)
    
    --HG--
    branch : SDL-1.2
    pcercuei committed Sep 22, 2020
  11. joystick/linux: Enhance detection of gamepads

    Detect gamepads that use a D-pad instead of an analog stick.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    ---
     src/joystick/linux/SDL_sysjoystick.c | 3 ++-
     1 file changed, 2 insertions(+), 1 deletion(-)
    
    --HG--
    branch : SDL-1.2
    pcercuei committed Sep 22, 2020

Commits on Sep 21, 2020

  1. riscos: Fix off-by-one issues with mouse coordinates

    --HG--
    branch : SDL-1.2
    ccawley2011 committed Sep 21, 2020

Commits on Sep 20, 2020

  1. riscos: Add support for additional mouse events

    --HG--
    branch : SDL-1.2
    ccawley2011 committed Sep 20, 2020

Commits on Jul 18, 2020

  1. coreaudio: fix build for older versions / against older sdks after co…

    …mmit 45055c6
    
    --HG--
    branch : SDL-1.2
    sezero committed Jul 18, 2020

Commits on Jul 17, 2020

  1. coreaudio: Move off deprecated APIs.

    Fixes SDL 1.2 audio on macOS 11.0 beta ("Big Sur").
    
    --HG--
    branch : SDL-1.2
    icculus committed Jul 17, 2020

Commits on Jun 24, 2020

  1. Fixed bug 5207 - sndio bug fixes for 1.2 branch

    - use SIO_DEVANY instead of NULL
    - simplify SNDIO_WaitAudio (do as others backends do)
    - remove the rate negotiation, which predates sndiod
    
    Patch provided by Brad Smith.
    
    --HG--
    branch : SDL-1.2
    sezero committed Jun 24, 2020

Commits on Jun 23, 2020

  1. Fixed bug 5208 - Fix libGL loading on OpenBSD

    Brad Smith
    
    Attached is a patch to fix libGL loading on OpenBSD. The major versioning should not be hardcoded.
    
    --HG--
    branch : SDL-1.2
    slouken committed Jun 23, 2020

Commits on Jun 21, 2020

Commits on Feb 13, 2020

  1. riscos: Increase the number of supported joystick buttons

    --HG--
    branch : SDL-1.2
    ccawley2011 committed Feb 13, 2020
Older