View Single Post
Old 05-12-2016, 09:03 PM   #28
Human being with feelings
Garrick's Avatar
Join Date: Jul 2009
Location: Wellington
Posts: 4,534

Originally Posted by Lokasenna View Post
Not quite, you've got the order all wrong. Have a look at what I did for that task:...................

1. Notice that pretty much everything is being done inside the Main() function. You could definitely take a bunch of that and put it inside a separate function, for instance MaxFontSize(x, y, w, h, font, str), if you wanted to.

2. The gfx.init() call has to be outside the function you're deferring, or you'll just keep opening and closing a window over and over and erasing whatever you draw in it.
ahhh sweet, I see what your're doing now.
thanks for the reply, I really appreciate it.
Garrick is offline   Reply With Quote