| 209 | } |
| 210 | |
| 211 | void Graphics::drawString(const std::string& str, gfx::Color fg, gfx::Color bg, const gfx::Point& ptOrig) |
| 212 | { |
| 213 | gfx::Point pt(m_dx+ptOrig.x, m_dy+ptOrig.y); |
| 214 | dirty(gfx::Rect(pt.x, pt.y, m_font->textLength(str), m_font->height())); |
| 215 | |
| 216 | she::SurfaceLock lock(m_surface); |
| 217 | m_surface->drawString(m_font.get(), fg, bg, pt.x, pt.y, str); |
| 218 | } |
| 219 | |
| 220 | void Graphics::drawUIString(const std::string& str, gfx::Color fg, gfx::Color bg, const gfx::Point& pt, |
| 221 | bool drawUnderscore) |