| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There are two parts to this change. First, the cairo and macosx backends recycle the graphics context instead of making a new one with the new_gc() method, so the _alpha attribute must be reset to 1 at that point. Second, the GraphicsContextBase.set_foreground() method needs to call the set_alpha method instead of setting the _alpha attribute, so that the subclass method is called.
backends: fix alpha handling for cairo and macosx
| Back | FazBrowse Home | New Git URL |
There are two parts to this change. First, the cairo
and macosx backends recycle the graphics context instead
of making a new one with the new_gc() method, so the _alpha
attribute must be reset to 1 at that point. Second, the
GraphicsContextBase.set_foreground() method needs to call
the set_alpha method instead of setting the _alpha attribute,
so that the subclass method is called.