(gfx/scaler) Get rid of some unnecessary ifs