~ubuntu-branches/debian/sid/gource/sid

« back to all changes in this revision

Viewing changes to src/textbox.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Caudwell
  • Date: 2011-05-16 11:30:00 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110516113000-vcqcni97y90b5eyy
Tags: 0.34-1
* New upstream release
* Changed build dependency from FTGL to Freetype 2
* Updated debian/copyright
* Bump Standards-Version to 3.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
    if(width > rect_width) rect_width = width;
73
73
    
74
 
    rect_height += (font.getHeight()+4);
 
74
    rect_height += (font.getFontSize()+4);
75
75
    
76
76
    content.push_back(str);   
77
77
}
98
98
 
99
99
    if(!adjust) return;
100
100
 
101
 
    int fontheight = font.getHeight() + 4;
 
101
    int fontheight = font.getFontSize() + 4;
102
102
    
103
103
    corner.y -= rect_height;
104
104
 
153
153
    std::vector<std::string>::const_iterator it;
154
154
    for(it = content.begin(); it != content.end(); it++) {
155
155
        font.draw((int)corner.x+2, (int)corner.y+yinc,  (*it).c_str());
156
 
        yinc += font.getHeight() + 4;
 
156
        yinc += font.getFontSize() + 4;
157
157
    }
158
158
}