*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40660
This commit is contained in:
parent
d28eb3b308
commit
4be1dcdd13
1 changed files with 6 additions and 4 deletions
|
@ -85,10 +85,11 @@ SDL_Overlay *X11_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, S
|
|||
RootWindow(GFX_Display, SDL_Screen),
|
||||
&adaptors, &ainfo)) ) {
|
||||
#ifdef USE_LAST_ADAPTOR
|
||||
for ( i=0; i < adaptors; ++i ) {
|
||||
for ( i=0; i < adaptors; ++i )
|
||||
#else
|
||||
for ( i=0; (i < adaptors) && (xv_port == -1); ++i ) {
|
||||
for ( i=0; (i < adaptors) && (xv_port == -1); ++i )
|
||||
#endif /* USE_LAST_ADAPTOR */
|
||||
{
|
||||
/* Check to see if the visual can be used */
|
||||
if ( BUGGY_XFREE86(<=, 4001) ) {
|
||||
int visual_ok = 0;
|
||||
|
@ -110,10 +111,11 @@ SDL_Overlay *X11_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, S
|
|||
formats = SDL_NAME(XvListImageFormats)(GFX_Display,
|
||||
ainfo[i].base_id, &num_formats);
|
||||
#ifdef USE_LAST_ADAPTOR
|
||||
for ( j=0; j < num_formats; ++j ) {
|
||||
for ( j=0; j < num_formats; ++j )
|
||||
#else
|
||||
for ( j=0; (j < num_formats) && (xv_port == -1); ++j ) {
|
||||
for ( j=0; (j < num_formats) && (xv_port == -1); ++j )
|
||||
#endif /* USE_LAST_ADAPTOR */
|
||||
{
|
||||
if ( (Uint32)formats[j].id == format ) {
|
||||
for ( k=0; k < ainfo[i].num_ports; ++k ) {
|
||||
if ( Success == SDL_NAME(XvGrabPort)(GFX_Display, ainfo[i].base_id+k, CurrentTime) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue