Re: clearing a gdk_image through memset
- From: Havoc Pennington <hp redhat com>
- To: MC_Vai <estoy ver megared net mx>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: clearing a gdk_image through memset
- Date: 13 Jul 2001 13:10:53 -0400
MC_Vai <estoy ver megared net mx> writes:
Is it posible? (clear an image screen through memset)
I'm trying this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
memset( (void *)oszi_image->mem,
(int)black_color.pixel,
sizeof(oszi_image->mem) * (oszi_height * oszi_width) );
This assumes that a pixel is 1 byte, and that sizeof(oszi_image->mem)
is 1, neither of which is true in general.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]