--- evtouch.c.orig 2008-04-27 02:33:42.000000000 +0200 +++ evtouch.c 2008-04-27 02:40:19.000000000 +0200 @@ -924,6 +924,10 @@ screen_width = pScrn->currentMode->VDisplay; screen_height = pScrn->currentMode->HDisplay; } + if ( rotation == RR_Rotate_90 || rotation == RR_Rotate_270 ) { + int tmp = screen_width; screen_width = screen_height; + screen_height = tmp; + } if (xc < (max_x / 2)) { /*