提交 2577194c 编写于 作者: A Adam Rankin

Correcting return type from videoDevice::findType to be int thus allowing...

Correcting return type from videoDevice::findType to be int thus allowing detection of failed device init request
上级 1b6e0279
......@@ -2580,7 +2580,7 @@ bool videoDevice::setupDevice(unsigned int id)
bool videoDevice::setupDevice(unsigned int w, unsigned int h, unsigned int idealFramerate)
{
unsigned int id = findType(w * h, idealFramerate);
int id = findType(w * h, idealFramerate);
if( id < 0 )
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册