Fixed compiler warnings
This commit is contained in:
parent
57163e457f
commit
cf60f13a01
2 changed files with 4 additions and 1 deletions
|
@ -678,7 +678,7 @@ X11_GL_SetSwapInterval(_THIS, int interval)
|
||||||
* it has the wrong value cached. To work around it, we just run a no-op
|
* it has the wrong value cached. To work around it, we just run a no-op
|
||||||
* update to the current value.
|
* update to the current value.
|
||||||
*/
|
*/
|
||||||
int currentInterval = _this, X11_GL_GetSwapInterval(_this);
|
int currentInterval = X11_GL_GetSwapInterval(_this);
|
||||||
_this->gl_data->glXSwapIntervalEXT(display, drawable, currentInterval);
|
_this->gl_data->glXSwapIntervalEXT(display, drawable, currentInterval);
|
||||||
_this->gl_data->glXSwapIntervalEXT(display, drawable, interval);
|
_this->gl_data->glXSwapIntervalEXT(display, drawable, interval);
|
||||||
|
|
||||||
|
|
|
@ -603,6 +603,7 @@ dump_monitor_info (MonitorInfo *info)
|
||||||
case MDDI: interface = "MDDI"; break;
|
case MDDI: interface = "MDDI"; break;
|
||||||
case DISPLAY_PORT: interface = "DisplayPort"; break;
|
case DISPLAY_PORT: interface = "DisplayPort"; break;
|
||||||
case UNDEFINED: interface = "undefined"; break;
|
case UNDEFINED: interface = "undefined"; break;
|
||||||
|
default: interface = "unknown"; break;
|
||||||
}
|
}
|
||||||
printf ("Interface: %s\n", interface);
|
printf ("Interface: %s\n", interface);
|
||||||
|
|
||||||
|
@ -631,6 +632,7 @@ dump_monitor_info (MonitorInfo *info)
|
||||||
case MONOCHROME: s = "monochrome"; break;
|
case MONOCHROME: s = "monochrome"; break;
|
||||||
case RGB: s = "rgb"; break;
|
case RGB: s = "rgb"; break;
|
||||||
case OTHER_COLOR: s = "other color"; break;
|
case OTHER_COLOR: s = "other color"; break;
|
||||||
|
default: s = "unknown"; break;
|
||||||
};
|
};
|
||||||
|
|
||||||
printf ("Color: %s\n", s);
|
printf ("Color: %s\n", s);
|
||||||
|
@ -731,6 +733,7 @@ dump_monitor_info (MonitorInfo *info)
|
||||||
case TWO_WAY_LEFT_ON_EVEN: s = "Two-way, Left on Even"; break;
|
case TWO_WAY_LEFT_ON_EVEN: s = "Two-way, Left on Even"; break;
|
||||||
case FOUR_WAY_INTERLEAVED: s = "Four-way Interleaved"; break;
|
case FOUR_WAY_INTERLEAVED: s = "Four-way Interleaved"; break;
|
||||||
case SIDE_BY_SIDE: s = "Side-by-Side"; break;
|
case SIDE_BY_SIDE: s = "Side-by-Side"; break;
|
||||||
|
default: s = "unknown"; break;
|
||||||
}
|
}
|
||||||
printf (" Stereo: %s\n", s);
|
printf (" Stereo: %s\n", s);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue