Fix segfault (don't pass pointers between functions in different SDL versions), minor refactor

Created by  quickdudley  on July 4, 2021
E742MTJAS6KZGXIFVCZMKREGQK34LA45VBIT4E7ODBL7J64FKJFAC
Change contents