1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
void drawPoppies(Poppies thePoppies)
{
/*static*/HBITMAP originalBitMap;
//static int cxClient, cyClient;
originalBitMap = (HBITMAP)SelectObject(bitmapHDC,thePoppies.bitmap);
/*for (thePoppies.y = 0 ; thePoppies.y < cyClient ; thePoppies.y += thePoppies.x+32)
for (thePoppies.x = 0 ; thePoppies.x < cxClient ; thePoppies.x += thePoppies.y+32)
{
BitBlt(backHDC,thePoppies.x, thePoppies.y,thePoppies.x+32,thePoppies.y+32,bitmapHDC,0,0,SRCCOPY);
}*/
BitBlt(backHDC,thePoppies.x,thePoppies.y,thePoppies.x+32,thePoppies.y+32,bitmapHDC,0,0,SRCCOPY);
SelectObject(bitmapHDC,originalBitMap);
}
|