ah doh! sorry. in that case try if(x>-4) instead > > The x<LCD_WIDTH statement is checking for the right boundary, and the crash happens at the left.