Re: Bug 50372: Setting stipple to NULL = X error
- From: Tim Janik <timj gtk org>
- To: Owen Taylor <otaylor redhat com>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: Bug 50372: Setting stipple to NULL = X error
- Date: Sat, 17 Mar 2001 00:07:02 +0100 (CET)
On 16 Mar 2001, Owen Taylor wrote:
> Havoc Pennington <hp redhat com> writes:
> But the whole point is, you can't set the stipple to None with the
> Xlib API. You have to change the fill mode (gdk_gc_set_fill)
> to be something other than GDK_STIPPLED. But I think changing
> the fill mode would be wrong in this function.
>
> In the bug report, it suggests simulating unsetting by setting
> a 1x1 solid bitmap as the stipple - this behaves equivalently
> to the "unset" default for a GC. Which is probably the best
> option, though less efficient than for the user to simply
> set the fill mode to something else.
gut feeling is, disallow NULL for stipple then (i.e. g_return_if_fail())
and document to use another fill style instead of stipple NULLL then.
>
> Regards,
> Owen
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]