Fix conditionals in src/graphics/graphics.cpp

Replaced binary operator (&) with boolean operator (&&)