Permalink
Switch branches/tags
Nothing to show
Commits on Jul 17, 2018
  1. Fix: Surface#fill (#25)

    joestraitiff authored and ysbaddaden committed Jul 17, 2018
    Modified Surface#fill to pass a nil instead of a rect when it's nil.
    
    Removed unnecessary checking for alpha (the color function does this already).
Commits on Jul 2, 2018
Commits on Mar 12, 2018
  1. Fix SDL::Window#fullscreen

    r00ster91 authored and ysbaddaden committed Mar 11, 2018
Commits on Feb 21, 2018
  1. Fix SDL_JoystickGetButton's signature

    RX14 authored and ysbaddaden committed Feb 20, 2018
Commits on Oct 20, 2017
  1. Corrections to allow screenshots of SDL::Renderer

    ysbaddaden committed Oct 20, 2017
        format = window.surface.format
        buffer = Bytes.new(width * height * format.bytes_per_pixel)
    
        renderer.read_pixels(SDL::Rect[0, 0, width, height], format, buffer)
        screenshot = SDL::Surface.from(buffer, width, height, format)
        screenshot.save_bmp("screenshot.bmp")
Commits on Jun 13, 2017
  1. Add support for SDL2_mixer

    jwoertink authored and ysbaddaden committed Mar 27, 2017
Commits on Jun 9, 2017
  1. Rework: @[Extern] Color and Rect structs

    ysbaddaden committed Apr 13, 2017
    In order to avoid copying values and HEAP allocations, the C structs
    are now Crystal structs with the `@[Extern]` decorator, so they're
    identical/exchangeable with the SDL structs.
Commits on May 16, 2017
  1. Cleanup

    ysbaddaden committed Apr 12, 2017
Commits on May 8, 2017
  1. Fix: draw_lines(x1, y1, x2, y2) had a typo

    ujappelbe authored and ysbaddaden committed May 7, 2017
    The Y-value from the second point was used for both points.
Commits on Mar 8, 2017
Commits on Feb 24, 2017
  1. Ignore samples data (#4)

    jwoertink authored and ysbaddaden committed Feb 24, 2017
    Ignore the data images in samples to avoid repo clutter
Commits on Feb 15, 2017
Commits on Jan 12, 2017
  1. Fix: can't create Surface for accelerated Window

    ysbaddaden committed Jan 12, 2017
    Once a hardware accelerated Renderer is created for a Window, it's
    no longer possible to create a Surface. SDL doesn't care on Linux,
    but this is failing on macOS.
  2. Fix SDL_image: missing JPG + BPM typo

    jwoertink authored and ysbaddaden committed Jan 12, 2017
    * fix typo for BMP in image
    * adding missing JPG type to image
Commits on Jan 4, 2017
Commits on Dec 26, 2016
  1. Bindings for SDL_ttf

    ysbaddaden committed Dec 26, 2016
Commits on Dec 25, 2016
  1. README

    ysbaddaden committed Dec 25, 2016
  2. More samples + corrections

    ysbaddaden committed Dec 25, 2016
Commits on Nov 17, 2016
Commits on Nov 15, 2016
Commits on Nov 13, 2016
  1. SDL 1.2

    ysbaddaden committed Nov 13, 2016