Fix error scaling img when getting a timeout instead of an img
This commit is contained in:
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user