Update double-buffer.cpp

Suggested simplification to double-buffered update
Merge pull request #2 from abadams/patch-1

Update double-buffer.cpp