Added variables for windowed resolution