Re: clearing a gdk_image through memset
- From: MC_Vai <estoy ver megared net mx>
- To: gtk-app-devel-list gnome org
- Subject: Re: clearing a gdk_image through memset
- Date: Fri, 13 Jul 2001 13:19:32 +0000
En un Fri Jul/13/2001, a las 13:10:53, Havoc Pennington escribió:
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.
So, what would be the right way to do it?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]