FLTK logo

[fltk.coredev] Linux drawing in widget error: error in cairo_matrix_invert

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Linux drawing in widget error: error in cairo_matrix_invert Gonzalo Garramuño 05:26 May 21  
 
This piece of code (drawing on an HSV color wheel):


        imaging::Color4f hsv = color::rgb::to_hsv(color);

        int W = diameter / 2;
        int H = diameter / 2;

        fl_push_matrix();

        // Position at center of circle
        fl_translate(x() + W, y() + H);

        // Rotate base on hue
        fl_rotate(15.0 + hsv.r * 360.0f);

        // Scale based on saturation
        fl_scale(hsv.g * 0.375f, hsv.g * 0.375);

        fl_color(r, g, b);

        fl_begin_points();
        fl_vertex(0, diameter);
        fl_end_points();

        fl_pop_matrix();

returns:

error in cairo_matrix_invert

on Linux.


On Windows, it draws just fine and previously (before Cairo was the default drawing method for fltk1.4 it was also ok).  Any ideas how to further debug it or what might be wrong?

--
Gonzalo Garramuño
ggarra13@gmail.com

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/41903246-d94c-c454-cdec-43e3c86fd5c6%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.