Situated due east of Mysore , Srirangapatnam was the site of the battles against the Muslim ruler Tipu Sultan in the 1790s , in which the British gained control of the peninsula .
Srirangapatnam is west of the Mysore area .