Extract relative mode check to an inline function
Extract relative mode check to an inline function

This will allow to reuse the condition in another function.

Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy