mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-02-21 09:40:01 +00:00
Fix error scaling img when getting a timeout instead of an img
This commit is contained in:
parent
02e842b066
commit
38ec7c22fb
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user