Re: win32lib & a double buffer

new topic     » goto parent     » topic index » view thread      » older message » newer message

GrapeVine wrote:

> bitBlt( GW, 5, 5, PW, 0, 0, 485, 485, 0)

The arguments to bitBlt look backwards - the first value should be the
destination, not the source. In this case, the destintation is the window
(GW) and the source is the pixmap (PW).

In addition, you need to specify a raster operation - probably SRCCOPY, if
you are just copying the image:

   bitBlt( PW, 0, 0, 485, 485, GW, 5, 5, SRCCOPY )

If you are copying the entire bitmap to some point in the destination, you
might try using the copyBlt() routine, which is a lot like drawBitmap.

Hope this helps!

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu