Replying to 2 messages at once:

On 19.01.2011 13:01, Domingo Alvarez Duarte wrote:
 > I've found the problem, I did modified Fl_Graphics_Driver to use member
 > variables instead of static variables for all matrix manipulation and
 > for that I need the declaration of XPOINT to be visible, this
 > modifi8action was needed to implement Fl_PDF_Driver, because I need to
 > switch betwen more than one graphics driver to simulate multitask
 > (printing and allow user interface interaction, gerating pdf, postcript,
 > printing at the same time, ...).
 >
 > I did offered this to fltk but it was rejected.

I remember this, but I don't think that it was /rejected/. Probably
nobody had the time to do it, and now we're finalizing FLTK 1.3.0,
and such a feature request is unlikely to make it into this release.

 > So I'll live with my fltk variation for ever or till fltk change the
 > usage of static variables by method variables !

see below:

On 19.01.2011 13:12, Domingo Alvarez Duarte wrote:
> Here is my diff for fl_draw.h using Fl_Graphics_Driver member methods
> instead of using static variables.

This patch looks simple, and the addition is IMHO useful, but the patch
seems to be incomplete (the methods of the different graphics drivers
are missing, right?). I could be wrong, but looking at the patch...

Also, I believe that the graphics driver methods should NOT be prefixed
with "fl_". Example:

+inline void fl_push_matrix() { fl_graphics_driver->push_matrix(); }

Note that I also removed the trailing ';', because this is likely to
introduce a compiler warning.

To get this into svn, please check if we already have an STR for your
proposal, and if not, file an STR (RFE) for FLTK 1.4 with a complete
patch, so that we can consider it for the next release.

Thanks in advance

Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to