I (@kelleyk) have updated the original patch to be compatible with the double-buffering changes made upstream, repaired some test cases, and cleaned up the patch a little bit. The author of the original patch is @jimdigriz (Alexander Clouter).