Moving contact lines on a two-dimensional rough surface