File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -2080,15 +2080,13 @@ PG_PixelFormatEnum pg_default_convert_format = 0;
2080
2080
static PG_PixelFormatEnum
2081
2081
pg_GetDefaultConvertFormat (void )
2082
2082
{
2083
- #if SDL_VERSION_ATLEAST (3 , 0 , 0 )
2084
2083
if (pg_default_screen ) {
2084
+ #if SDL_VERSION_ATLEAST (3 , 0 , 0 )
2085
2085
return pg_default_screen -> surf -> format ;
2086
- }
2087
2086
#else
2088
- if (pg_default_screen ) {
2089
2087
return pg_default_screen -> surf -> format -> format ;
2090
- }
2091
2088
#endif
2089
+ }
2092
2090
return pg_default_convert_format ;
2093
2091
}
2094
2092
Original file line number Diff line number Diff line change @@ -1589,11 +1589,7 @@ pg_DisplayFormat(SDL_Surface *surface)
1589
1589
" or Window.get_surface()." );
1590
1590
return NULL ;
1591
1591
}
1592
- #if SDL_VERSION_ATLEAST (3 , 0 , 0 )
1593
- return SDL_ConvertSurface (surface , default_format );
1594
- #else
1595
- return SDL_ConvertSurfaceFormat (surface , default_format , 0 );
1596
- #endif
1592
+ return PG_ConvertSurfaceFormat (surface , default_format );
1597
1593
}
1598
1594
1599
1595
static SDL_Surface *
@@ -1616,9 +1612,6 @@ pg_DisplayFormatAlpha(SDL_Surface *surface)
1616
1612
#endif
1617
1613
case SDL_PIXELFORMAT_ABGR1555 :
1618
1614
case SDL_PIXELFORMAT_BGR565 :
1619
- pfe = SDL_PIXELFORMAT_ABGR8888 ;
1620
- break ;
1621
-
1622
1615
case PG_PIXELFORMAT_XBGR8888 :
1623
1616
case SDL_PIXELFORMAT_ABGR8888 :
1624
1617
pfe = SDL_PIXELFORMAT_ABGR8888 ;
You can’t perform that action at this time.
0 commit comments