~ubuntu-branches/ubuntu/lucid/agg/lucid-proposed

« back to all changes in this revision

Viewing changes to include/agg_renderer_raster_text.h

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2006-10-22 15:16:27 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20061022151627-wx9inil9o7z40xwc
Tags: 2.4+20060719-3
upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//----------------------------------------------------------------------------
2
 
// Anti-Grain Geometry - Version 2.3
 
2
// Anti-Grain Geometry - Version 2.4
3
3
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
4
4
//
5
5
// Permission to copy, use, modify, sell and distribute this software 
34
34
        renderer_raster_htext_solid(ren_type& ren, glyph_gen_type& glyph) :
35
35
            m_ren(&ren),
36
36
            m_glyph(&glyph)
37
 
        {
38
 
        }
 
37
        {}
 
38
        void attach(ren_type& ren) { m_ren = &ren; }
39
39
 
40
40
        //--------------------------------------------------------------------
41
41
        void color(const color_type& c) { m_color = c; }
219
219
                m_glyph->prepare(&r, x, y, *str, flip);
220
220
                if(r.x2 >= r.x1)
221
221
                {
222
 
                    m_ren->prepare(r.x2 - r.x1 + 1);
 
222
                    m_ren->prepare();
223
223
                    int i;
224
224
                    if(flip)
225
225
                    {