Changed sub_6BEF1B to use window_create_auto_pos rather than the subfunction.
Removed unused parameters, fixed warning.