FLTK logo

Re: [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 ]

Re: Linux drawing in widget error: error in cairo_matrix_invert Manolo 12:07 May 21  
  The example program calls function fl_scale(double x, double y) with null x and y.
These values are not in the range of meaningful values for a scaling operation.
I see that other platforms accept that in the context of the example program,
but I see that as a happy border effect an FLTK app should not rely on.

Why does the example program call fl_scale(0, 0) in the first place?

About how the Cairo backend of FLTK draw points :
it draws a filled rectangle of size 1 unit as shown by this code fragment
  void Fl_Cairo_Graphics_Driver::point(int x, int y) {
    rectf(x, y, 1, 1);
  }

--
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/988fa867-42d0-49cb-8840-9bad14f57a2cn%40googlegroups.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'.