> I'll apply the following patch shortly (compiled okay on my
> cygwin box with gcc
> 3.4.4).
>
> Index: src/fl_font_win32.cxx
> ===================================================================
> --- src/fl_font_win32.cxx (revision 6534)
> +++ src/fl_font_win32.cxx (working copy)
> @@ -225,6 +225,7 @@
> GLYPHMETRICS metrics;
> int maxw = 0, maxh = 0, dh;
> int minx = 0, miny = -999999;
> + unsigned len = 0;
>
> // Have we loaded the GetGlyphIndicesW function yet?
> if (have_loaded_GetGlyphIndices == 0) {
> @@ -234,7 +235,7 @@
> if(!fl_GetGlyphIndices) goto exit_error; // No
> GetGlyphIndices function, use
> fallback mechanism instead
>
> // now convert the string to WCHAR and measure it
> - unsigned len = fl_utf8toUtf16(c, n, ext_buff, wc_len);
> + len = fl_utf8toUtf16(c, n, ext_buff, wc_len);
> if(len >= wc_len) {
> if(ext_buff) {delete [] ext_buff;}
> if(gi) {delete [] gi;}
Thanks Albrecht, that looks like what I had intended!
One question; did the previous version compile OK for you?
I'm sort of wondering which compiler variants do/don't allow that style
of usage...
Cheers,
--
Ian
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev