@@ -63,12 +63,12 @@ void throw_ft_error(std::string message, FT_Error error) {
6363 throw std::runtime_error (os.str ());
6464}
6565
66- FT2Image::FT2Image () : m_dirty ( true ), m_buffer (NULL ), m_width (0 ), m_height (0 )
66+ FT2Image::FT2Image () : m_buffer (NULL ), m_width (0 ), m_height (0 )
6767{
6868}
6969
7070FT2Image::FT2Image (unsigned long width, unsigned long height)
71- : m_dirty ( true ), m_buffer (NULL ), m_width (0 ), m_height (0 )
71+ : m_buffer (NULL ), m_width (0 ), m_height (0 )
7272{
7373 resize (width, height);
7474}
@@ -102,8 +102,6 @@ void FT2Image::resize(long width, long height)
102102 if (numBytes && m_buffer) {
103103 memset (m_buffer, 0 , numBytes);
104104 }
105-
106- m_dirty = true ;
107105}
108106
109107void FT2Image::draw_bitmap (FT_Bitmap *bitmap, FT_Int x, FT_Int y)
@@ -141,8 +139,6 @@ void FT2Image::draw_bitmap(FT_Bitmap *bitmap, FT_Int x, FT_Int y)
141139 } else {
142140 throw std::runtime_error (" Unknown pixel mode" );
143141 }
144-
145- m_dirty = true ;
146142}
147143
148144void
@@ -158,8 +154,6 @@ FT2Image::draw_rect_filled(unsigned long x0, unsigned long y0, unsigned long x1,
158154 m_buffer[i + j * m_width] = 255 ;
159155 }
160156 }
161-
162- m_dirty = true ;
163157}
164158
165159// ft_outline_decomposer should be passed to FT_Outline_Decompose.
0 commit comments