double buffering when draw to desktop window