File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -574,7 +574,7 @@ impl GameController {
574574
575575 /// Send a controller specific effect packet.
576576 #[ doc( alias = "SDL_GameControllerSendEffect" ) ]
577- pub fn send_effect ( & mut self , data : & [ u8 ] ) -> Result < ( ) , IntegerOrSdlError > {
577+ pub fn send_effect ( & mut self , data : & [ u8 ] ) -> Result < ( ) , String > {
578578 let result = unsafe {
579579 sys:: SDL_GameControllerSendEffect (
580580 self . raw ,
@@ -584,7 +584,7 @@ impl GameController {
584584 } ;
585585
586586 if result != 0 {
587- Err ( IntegerOrSdlError :: SdlError ( get_error ( ) ) )
587+ Err ( get_error ( ) )
588588 } else {
589589 Ok ( ( ) )
590590 }
Original file line number Diff line number Diff line change @@ -1435,7 +1435,7 @@ impl Window {
14351435 let mut size: sys:: size_t = 0 ;
14361436 let data = sys:: SDL_GetWindowICCProfile (
14371437 self . context . raw ,
1438- & mut size as * const sys :: size_t as * mut _ ,
1438+ & mut size as * mut _ ,
14391439 ) ;
14401440 if data. is_null ( ) {
14411441 return Err ( get_error ( ) ) ;
You can’t perform that action at this time.
0 commit comments