This patch enables the offscreen drawing orders that were added in RDP 5.1. Drawing can be redirected to an offscreen surface. When it's done, the contents of the drawing surface can then be memblted to the screen in a single operation. It works for me, but needs to be tested more. The diff is against rdesktop 1.5.0.