add check to avoid calling RETRO_ENVIRONMENT_SET_GEOMETRY unnecessarily