Screenshot code cleanup:
Used standard bool for mGrab.
Merged a few if condition checks.
Declaration and assignment of local variables in one line.
Removed redundant brackets.
Added and removed newlines to improve readability.
Added a missing break (just a style issue).
Fixed indentation.
C++ style for comments.
Approved by PS Jenkins bot, Sam Spilsbury.