gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] /srv/bzr/gnash/trunk r11377: Framework for anchor tag


From: Benjamin Wolsey
Subject: Re: [Gnash-commit] /srv/bzr/gnash/trunk r11377: Framework for anchor tag, as well as partial implementation of TextFormat url and target properties
Date: Fri, 07 Aug 2009 08:01:23 +0200

> +    _fontHeight(12 * PIXEL_RATIO), 

There is an inline function pixelsToTwips(), which is defined in
GnashNumeric.h, which does what you want her (and all the other places
where PIXEL_RATIO is used).

> +     float recordWidth() const {
> +             float width=0.0;
> +             for (size_t i=0; i < glyphs().size(); ++i)
> +             {
> +                     width += glyphs()[i].advance;
> +             }
> +     }

See why it's a good idea to look for compiler warnings and fix them?

--
Yes, YouTube does work in Gnash
http://www.gnu.org/software/gnash/

Benjamin Wolsey, Software Developer - http://benjaminwolsey.de

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]