File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
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 @@ -1433,10 +1433,7 @@ impl Window {
14331433 pub fn icc_profile ( & self ) -> Result < Vec < u8 > , String > {
14341434 unsafe {
14351435 let mut size: sys:: size_t = 0 ;
1436- let data = sys:: SDL_GetWindowICCProfile (
1437- self . context . raw ,
1438- & mut size as * const sys:: size_t as * mut _ ,
1439- ) ;
1436+ let data = sys:: SDL_GetWindowICCProfile ( self . context . raw , & mut size as * mut _ ) ;
14401437 if data. is_null ( ) {
14411438 return Err ( get_error ( ) ) ;
14421439 }
You can’t perform that action at this time.
0 commit comments