At lines 286, in the 2D Perlin noise generator, the Y samples do not rely on the height of the screen, instead using the width instead.
Is this deliberate behaviour? Attached is an image of the code in question:

https://github.com/OneLoneCoder/videos/blob/master/OneLoneCoder_PerlinNoise.cpp