Fix error scaling img when getting a timeout instead of an img
This commit is contained in:
parent
02e842b066
commit
38ec7c22fb
1 changed files with 1 additions and 1 deletions
|
|
@ -78,8 +78,8 @@ int capture_display(platf::img_t *img, std::unique_ptr<platf::display_t> &disp)
|
||||||
}
|
}
|
||||||
case platf::capture_e::error:
|
case platf::capture_e::error:
|
||||||
return -1;
|
return -1;
|
||||||
// Prevent warning during compilation
|
|
||||||
case platf::capture_e::timeout:
|
case platf::capture_e::timeout:
|
||||||
|
return 0;
|
||||||
case platf::capture_e::ok:
|
case platf::capture_e::ok:
|
||||||
return 1;
|
return 1;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue