@@ -63,12 +63,12 @@ void throw_ft_error(std::string message, FT_Error error) {
63
63
throw std::runtime_error (os.str ());
64
64
}
65
65
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 )
67
67
{
68
68
}
69
69
70
70
FT2Image::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 )
72
72
{
73
73
resize (width, height);
74
74
}
@@ -102,8 +102,6 @@ void FT2Image::resize(long width, long height)
102
102
if (numBytes && m_buffer) {
103
103
memset (m_buffer, 0 , numBytes);
104
104
}
105
-
106
- m_dirty = true ;
107
105
}
108
106
109
107
void 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)
141
139
} else {
142
140
throw std::runtime_error (" Unknown pixel mode" );
143
141
}
144
-
145
- m_dirty = true ;
146
142
}
147
143
148
144
void
@@ -158,8 +154,6 @@ FT2Image::draw_rect_filled(unsigned long x0, unsigned long y0, unsigned long x1,
158
154
m_buffer[i + j * m_width] = 255 ;
159
155
}
160
156
}
161
-
162
- m_dirty = true ;
163
157
}
164
158
165
159
// ft_outline_decomposer should be passed to FT_Outline_Decompose.
0 commit comments