File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2046,7 +2046,7 @@ SDL_JoystickOpened(int device_index)
20462046}
20472047
20482048static SDL_PixelFormatEnum
2049- BPPToPixelFormat (int bpp )
2049+ BPPToPixelFormat (unsigned bpp )
20502050{
20512051 #if !SDL_VERSION_ATLEAST (2 ,0 ,14 )
20522052 #define SDL_PIXELFORMAT_XRGB8888 SDL_PIXELFORMAT_RGB888
@@ -2244,7 +2244,7 @@ Init12VidModes(void)
22442244{
22452245 const int total = SDL20_GetNumDisplayModes (VideoDisplayIndex );
22462246 const char * maxmodestr ;
2247- const int max_bpp = SDL12Compat_GetHintInt ("SDL12COMPAT_MAX_BPP" , 32 );
2247+ const unsigned max_bpp = SDL12Compat_GetHintInt ("SDL12COMPAT_MAX_BPP" , 32 );
22482248 VideoModeList * vmode = NULL ;
22492249 void * ptr = NULL ;
22502250 int i , j ;
@@ -2413,7 +2413,7 @@ Init12Video(void)
24132413{
24142414 const char * driver = SDL20_GetCurrentVideoDriver ();
24152415 const char * scale_method_env = SDL12Compat_GetHint ("SDL12COMPAT_SCALE_METHOD" );
2416- const int max_bpp = SDL12Compat_GetHintInt ("SDL12COMPAT_MAX_BPP" , 32 );
2416+ const unsigned max_bpp = SDL12Compat_GetHintInt ("SDL12COMPAT_MAX_BPP" , 32 );
24172417 SDL_DisplayMode mode ;
24182418 int i ;
24192419
You can’t perform that action at this time.
0 commit comments