Enabling SDL Vsync in Windows

Hi All,

I'm kinda newbie in SDL. My question is; my software runs  ~180fps but my screen is 60Hz so I have tearing in my display. I want to enable Vsync in Windows- actually not sure whether it's on or off thou -  

Btw It’s running full screen and I tried using small delays, or changing SDL_Flip to SDL_UpdateRect but no luck.I’d appreciate any comment or help. Thanks

Hi
Thanks for the reply. I will check again but I think I was already using double buffering. Assuming that I have double buffer, does Vsync runs automaticly ? or is double buffering = Vsync ?

Thanks again

Thanks handcrafter,

Your explanations made it a lot clear for me. Cheers!