Matt:

About this recent change to remove a compilation warning:
#   if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
  if (ctx) aglSetWindowRef(ctx, NULL);
#    else
  if (ctx) aglSetDrawable(ctx, NULL);
#    endif

Wouldn't it be better to also test for aglSetWindowRef != NULL
and call aglSetDrawable if not? This allows to compile a program
on 10.5 or 10.6 and have the resulting executable usable
on earlier OS versions. A useful thing for program distribution.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to