Skip to content

Commit

Permalink
use a module for image too. This will help if SDL_image ever gets ano…
Browse files Browse the repository at this point in the history
…ther header.
  • Loading branch information
maia-s committed Feb 2, 2025
1 parent 3ee25f1 commit b7d1451
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdl3-image-sys/examples/showimage.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Based on showimage.c from the SDL_image examples.
// Like the original, this code is licensed under the Zlib license.

use sdl3_image_sys::{IMG_Load, IMG_LoadTexture, IMG_SaveAVIF, IMG_SaveJPG, IMG_SavePNG};
use sdl3_image_sys::image::{IMG_Load, IMG_LoadTexture, IMG_SaveAVIF, IMG_SaveJPG, IMG_SavePNG};
use sdl3_sys::everything::*;
use std::{
env,
Expand Down
6 changes: 3 additions & 3 deletions sdl3-image-sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod generated;

#[cfg(doc)]
use generated::everything;
pub use generated::image;

pub use generated::image::*;
#[doc(hidden)]
pub use generated::everything;

0 comments on commit b7d1451

Please sign in to comment.