> Right, as requested, here's a "minimal" example - but still quite
> long - of my cairo window Not Working on OSX.
>
> This code works "fine" on linux, does not work on OSX, and has not
> been tested on win32 (although I coded in the hooks so folks can see
> what I was doing.) The "real" code does work fine on win32 so this
> may also.
>
> The base widget from which I derive my "cairo test window" can be
> either Fl_Window or Fl_Box depending on setting the WIN_BASE define
> at compile time.
> On a good day, this draws a 70% alpha red triangle pointing upwards.
>

OK,
the good news is: it does work (though you have to resize the box on both win32 
and mac os x to see the weather sensitive lunatic triangle) !
the bad news is : now we have to find what's wrong in your config

Conditions of test:
-------------------
Mac   OS X 10.5.4
Fltk  1.3 svn
Cairo 1.6.4

What I did:
-----------

First, I tested on win32, only the line context->surface is erroneous and it 
works fine when replacing with the surface var. that you defined upper in the 
code.

Also, I added the following line:
  test->redraw()
before the Fl::run() call so that it is refreshed otherwise you have to resize 
the window to make it work.

Then on MAC OS X,
I compiled and linked against usual fltk libs + libcairo.a and libpixman-1.a
Then run, -> works !

If after testing my modifications, it still doesn't work,
check first the cairo-features.h in the cairo/ include subdir where you 
installed it.
In particular, check that the Quartz rendering defines are enabled ok.
Also check that your configure is using Quartz and not QD.

If it still doesn't work, then try removing cairo and install it via the 
MacPort command:
sudo port install cairo

It should make it,

Hope this will help,
Fabien

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

Reply via email to