Add missing member initialisation in Fl_Cairo_Graphics_Driver constructor.
This commit is contained in:
parent
f8db18597a
commit
9e7f49f56f
@ -68,6 +68,7 @@ static void draw_image_cb(void *data, int x, int y, int w, uchar *buf) {
|
||||
Fl_Cairo_Graphics_Driver::Fl_Cairo_Graphics_Driver() : Fl_Graphics_Driver() {
|
||||
cairo_ = NULL;
|
||||
pango_layout_ = NULL;
|
||||
linestyle_ = FL_SOLID;
|
||||
clip_ = NULL;
|
||||
scale_x = scale_y = 1;
|
||||
angle = 0;
|
||||
@ -949,6 +950,7 @@ static Fl_Font_Descriptor* find(Fl_Font fnum, Fl_Fontsize size) {
|
||||
|
||||
|
||||
void Fl_Cairo_Graphics_Driver::font(Fl_Font fnum, Fl_Fontsize s) {
|
||||
if (s == 0) return;
|
||||
if (font() == fnum && size() == s) return;
|
||||
if (fnum == -1) {
|
||||
Fl_Graphics_Driver::font(0, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user