We tried to show the problem as a screen shot, but it didn’t help. As you can imagine, a screen shot (or at least a screen shot of the actual screen) is a pretty good way to demonstrate the problem.
In general the pi method is just a function that returns the number of pixels in a window. We were going to use that in the demo to measure how much space our screen has left, but for the sake of this demo we took a different approach. We did something we probably shouldn’t have, and that was to change the actual screen size to something we can manipulate easily. But we did it anyway.
The screen shot is a way to just show the problem. A picture of a screen with a “1” in it is a pretty good demonstration of the problem (and it helps to learn what the pi method is called by looking at the original screen shot first), but the problem is when you do that you’ll also see the problem with the actual screen.
The problem is with the method we use for changing the screen size. When we use the screen size trick, the size of the original screen is actually changed by the amount that the screen is scaled. So a 1 in a screen is actually a 2 in the original screen. The problem is that the method can only be used with a size of 1. So to change a screen we use the screen size trick and the original screen size is changed by the amount that the screen is scaled.