[Splashy-devel] Translucent Text Area Patch.
Luis M
lemsx1 at gmail.com
Sat Mar 18 16:01:31 UTC 2006
Hello Pat,
You blow my mind everytime you submit one of these patches...
Thanks a lot!
I couldn't figure out how to do this, and certainly NOT how to do it
properly. I'll backport this patch "by hand".
Note that we have made the build process a lot better now. You will be
able to quickly make a debian package from dist .bz2 tarball. Greatly
reducing confusion and other friction that might arise. But, i
understand that you can't simply use upstream sources for the project
you are working on.
Keep the patching coming none-the-less. Perhaps later you will have
time to re-sync and we will try our best not to do major changes to
the code (in svn) without a previous consensus from vendors using
splashy (like is your case -- Xandros, otavio's custom distro, demarc
security solutions, and some others that skip my mind now).
This should definitely encourage others to do the same, and can focus
in getting other things that matter as well (feature requests, bugs,
and maintaining the IRC community alive).
On 3/17/06, Pat Suwalski <pats at xandros.com> wrote:
> Pat Suwalski wrote:
> > Technical details:
> > - It uses a subsurface, so that if the text is too big, it's simply
> > cut off.
> > - I pulled out the code to determine the divider factor based on
> > pixels or percent to a function that can be used anywhere in video.c.
> > - It is cool. :)
>
> I should add also that the design is with two surfaces: one is a
> subsurface of the main background, and the other is a purely
> non-video-memory buffer.
>
> In the initialization function "video_start_text_area" the text box is
> drawn against the background image and its translucent/modified area is
> saved to a the non-video-memory surface.
>
> Every time text is drawn, the clean tinted background is retrieved and
> blitted onto the main background, then the text is drawn.
>
> That should be a lot more efficient than copying, alpha-blitting a
> rectangle, and drawing back every time.
>
> Hopefully this eMail clarifies the technical specifics. As I say, I'm
> really fond of this patch. :)
>
> --Pat
>
> _______________________________________________
> Splashy-devel mailing list
> Splashy-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/splashy-devel
>
--
----)(-----
Luis Mondesi
System Administrator
Kiskeyix.org
"We think basically you watch television to turn your brain off, and
you work on your computer when you want to turn your brain on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb
No .doc: http://www.gnu.org/philosophy/no-word-attachments.es.html
More information about the Splashy-devel
mailing list