A few iteration fixes in SDL-only code.