Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
serpilliere committed Jan 20, 2024
1 parent a995dfe commit ffbdd54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/sdl2/clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,4 @@ impl ClipboardUtil {
pub fn has_primary_selection_text(&self) -> bool {
unsafe { sys::SDL_HasPrimarySelectionText() == sys::SDL_bool::SDL_TRUE }
}

}
4 changes: 3 additions & 1 deletion src/sdl2/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,9 @@ impl Window {
binarization_cutoff: u8,
) -> Result<(), i32> {
let mode = sys::WindowShapeMode::ShapeModeBinarizeAlpha;
let parameters = sys::SDL_WindowShapeParams { binarizationCutoff: binarization_cutoff };
let parameters = sys::SDL_WindowShapeParams {
binarizationCutoff: binarization_cutoff,
};
let mut shape_mode = sys::SDL_WindowShapeMode { mode, parameters };
let result = unsafe {
sys::SDL_SetWindowShape(self.context.raw, shape.as_ref().raw(), &mut shape_mode)
Expand Down

0 comments on commit ffbdd54

Please sign in to comment.