Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent users from creating Sdl2TtfContext out of nothing and use SDL's reference counting init/quit #1437

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Oct 8, 2024

  1. prevent users from creating Sdl2TtfContext out of nothing

    and various other changes, including:
    - allow multiple `ttf::init` calls, the same way it works with TTF_Init
    - return last sdl error instead of I/O error (like stale pr Rust-SDL2#1348, fixes Rust-SDL2#1347 and closes Rust-SDL2#1348)
    - implement `Clone` for `Sdl2TtfContext`, SDL C code will do the reference counting
    - make `ttf::font::internal_*` `pub(super)`
    - make `ttf::font::Font::raw` safe (obtaining a raw pointer is safe, using it is unsafe)
    antonilol committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    c4e74c7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d5985e3 View commit details
    Browse the repository at this point in the history
  3. update changelog

    antonilol committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    ffe598c View commit details
    Browse the repository at this point in the history