I tried all the menu options. There was a "Shape" submenu and I tried tweaking everything there but it didn't fix the distortion. I tried the "Position" submenu and tried to move the screen to the left. The right part started stretching out but the left part kept disappearing on the left.
I don't know if this is important but here is something else I noticed. When in a distorted resolution, if I press the Print Screen button and then paste the image in Paint while in a normal resolution(1024x768), the image is fine.
And also when my computer is turning on, and there are all those white letters in black background in the beginning, the view is distorted at that time too.