Win32Lib bug

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

I ran into a problem porting my Minesweeper clone to the latest version of
Win32Lib. It's also tripped me up with other games I've written. The problem
is that Win32Lib doesn't allow the creation of zero-sized pixmaps.

In a number of my programs, I would 'create' a zero-sized pixmap as a
placeholder, and later replace it with a 'real' pixmap once I had calculated
the pixmap.

In the old version of Win32Lib, you could create a zero-sized pixmap, and
the library would just set the handle to null. Resizing a 'real' pixmap
would discard the old version and replace it with a new version. Resizing a
'null' pixmap should simply create a new pixmap, and ignore the old value.

The behaviour in the current release is a bit different. I can create the
zero-sized pixmap, but I can't resize it. So when I try drawing to it later
(after it's been resized) I get lots of errors, and no image.

Other than identifying the general problem, I haven't bothered to find out
what has changed, or why. The temporary fix is to create a non-zero sized
pixmap. But I'm still curious how the behavior changed, and why.

Thanks!

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu