Convert gfx/scaler to C89-style for loop declarations too