Remove allowspecial, replace with opaqueness check

When I added the over-30-FPS mode, I kept running into this problem
where the special images of text boxes would render during the
deltaframes of fade-in/fade-out animations, even though they shouldn't
be. So I simply added a flag to the text box that enables drawing these
special images.

However, this doesn't solve the problem fully, and there's still a small
chance that a special-image text box could draw another special image
during its deltaframes. It's really rare and you have to have your
deltaframe luck juuuuuust right (or you could use libTAS, probably), but
it helps to be in 40% slowmode and have a high refresh rate (which, if
it isn't a multiple of 30, you should disable VSync, too, in order to
not have a low framerate).

So instead, special images will only be drawn if the text box has fully
faded in completely. That solves the issue completely.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-08-06 22:12:15 -04:00
1 parent 2710ebeff9
commit 43cf3c4f19
5 files changed
+40 -40

No files matched your search

-1
View File
@@ -13,7 +13,6 @@ textboxclass::textboxclass()
prev_tl = 0;
tm = 0;
timer = 0;
allowspecial = false;
xp = 0;
yp = 0;