Re: pixmap/pixbuf confusion



On Sun, 13 Jul 2003, Michael Koppelman wrote:

uninitialized. For it to grab the current window seems like a
deliberate action and should perhaps be documented. Better yet, the
color of "empty" IMHO could easily be 0.

Good thing other people's even humbler opinion prevail.

Clearing it would be pointless (since one would want to override that
before using the pixmap anyway), more code, and be inefficient.  Perhaps
not by much but by some.  Most of all, it would be absolutely pointless.

That it did seem to grab the current window was just one way a "random"
uninitialised buffer could turn out. Deal with it.

(The memory used for your pixmap was recently used for something else -
therefore it was probably already in the caches of your CPU so it was
faster than using "fresh" memory that was known to be cleared.  Good
trade-off in my opinion).

-Peter

"A lawyer who gets a criminal free must be punished for at least the crime of
 his client."



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]