Fix error scaling img when getting a timeout instead of an img

This commit is contained in:
loki 2020-02-23 20:48:19 +01:00
parent 02e842b066
commit 38ec7c22fb

View File

@ -78,8 +78,8 @@ int capture_display(platf::img_t *img, std::unique_ptr<platf::display_t> &disp)
}
case platf::capture_e::error:
return -1;
// Prevent warning during compilation
case platf::capture_e::timeout:
return 0;
case platf::capture_e::ok:
return 1;
default: