An inclination detection unit detects an inclination of the terminal device. A screen image rotation unit rotates a screen image when an inclination state of the terminal device detected by the inclination detection unit becomes a predetermined state. A touched position detection unit detects a position touched by a user. A comparison unit compares the position touched by the user before the inclination state of the terminal device becomes the predetermined state and the position touched by the user when or after the inclination state of the terminal device becomes the predetermined state. A suppression unit suppresses a rotation of the screen image by the screen image rotation unit, based on a result of comparison by the comparison unit.