//-----------------------------------------------------------------------------
// File: DDEx4.CPP
//
// Desc: Direct Draw example program 4. Adds functionality to
// example program 3. Creates a flipping surface and loads
// a bitmap image into an offscreen surface. Uses BltFast to
// copy portions of the offscreen surface to the back buffer
// to generate an animation. Illustrates watching return
// code from BltFast to prevent image tearing. This program
// requires 1.2 Meg of video ram.
//
// ダイレクト・ドロー・サンプル4。サンプル3に新機能を追加した。
// (表画面と裏画面を)取りかえるサーフェイスを作り、
// ビットマップ(絵の本体)をオフスクリーン・サーフェイスに読みこむ。
// BltFast関数を使いオフスクリーン・サーフェイスの一部をバックバッファに
// コピーしアニメーションを作る。BltFast関数のリターンコードを
// 見てイメージが壊れるのを防いでいる。(この行は翻訳に自信無し)
// このプログラムは1.2MのV−RAMが必要である。
//
// Copyright (c) 1995-1999 Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------