Skip to content

Releases: Enet4/dos-like-rs

v0.4.0

18 Oct 20:47
Compare
Choose a tag to compare
  • Change: Update revision of dos-like (#10)
  • Change: Add input key release support, leading to a few changes to the keyboard API #9
  • Chores: Update CI workflow (#11)

Full Changelog: v0.3.1...v0.4.0

v0.3.1

26 Jul 14:34
Compare
Choose a tag to compare

Fixes and Enhancements

  • Fix compilation under MacOS (#7 @jorisvddonk)
  • Minor documentation improvements (#8)

Full Changelog: 0.3.0...v0.3.1

0.3.0

29 Mar 18:02
Compare
Choose a tag to compare

What's Changed

  • swap_buffers was changed to no longer return a slice, so that it can be used without unsafe. For the function which also returns a slice, see swap_buffers_and_get. (#6)
  • Changed pixel coordinates to use i32 instead of u16. This also fixes draw_poly and fill_poly, which never really worked. (#5)
  • Fixed mouse functions to use i32 instead of u16. (#3 @Kapouett)

Full Changelog: 0.2.3...0.3.0

0.2.3

17 Mar 21:34
Compare
Choose a tag to compare

Fixes

  • Added null pointer checks in create_sound, as passing invalid parameters returns a null pointer and attempting to use the Sound value could lead to undefined behavior. Instead, this function panics. try_create_sound was added, which returns an Option<_> instead.

Enhancements

  • Memory layout of resource types Sound, Music and Image were changed to take advantage of the fact that the raw pointer is never null.

Full Changelog: 0.2.2...0.2.3

0.2.2

17 Mar 20:16
Compare
Choose a tag to compare

Fixes

  • Added null pointer checks in Music::create_mus. Attempting to use a Music value with a null pointer could lead to undefined behavior. Instead, this function panics if it could not load the music data from the slice.
  • Added Music::try_create_mus which does the same as above, but returns an Option<Music> instead (None if it could not load).

Enhancements

  • [dos-like-sys] Update dos-like revision from a676ea74 to 2bceb960 (2022-03-07).

Chores

  • Updated CI linux jobs to update packages before installing SDL2 and libGLEW (#1)

Full Changelog: 0.2.1...0.2.2

0.2.1

17 Mar 20:06
Compare
Choose a tag to compare

Fixes

  • Adjusted dos-like-sys building process to skip compilation in docs.rs

0.2.0

08 Mar 15:52
Compare
Choose a tag to compare

New

  • All functions from the native dos-like API have now been covered in the high level crate!
    • Implementations were categorized in the following modules: video input, sound, and music.

Fixes and Enhancements

  • Significantly improved documentation.
  • Build script was tweaked to work on Windows.
    • Mac OS is untested; WebAssembly is not yet supported.
  • Reduced package size of dos-like-sys by excluding unneeded contents.

Full Changelog: 0.1.0...0.2.0

0.1.0

05 Mar 18:08
Compare
Choose a tag to compare

Initial release, still very incomplete.