Fixed the scaled resolution bug. Finally.