On Fri, 10 Jul 2009, [email protected] wrote:

Hi,

> 2009-07-10 11:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
>   * include/hbgtcore.h
>   * include/hbapigt.h
>   * source/rtl/gtdos/gtdos.c
>   * source/rtl/gtwin/gtwin.c
>   * source/rtl/gtxwc/gtxwc.c
>   * source/rtl/gtcrs/gtcrs.c
>   * source/rtl/gtstd/gtstd.c
>   * source/rtl/gttrm/gttrm.c
>   * source/rtl/gtcgi/gtcgi.c
>   * source/rtl/gtapi.c
>   * source/rtl/gtos2/gtos2.c
>   * source/rtl/hbgtcore.c
>   * source/rtl/gtsln/gtsln.c
>   * source/rtl/gtpca/gtpca.c
>   * source/rtl/gtwvt/gtwvt.c
>   * contrib/hbct/screen2.c
>   * contrib/hbct/ctwin.c
>   * contrib/hbct/screen1.c
>   * contrib/hbnf/ftattr.c
>     * Changed color representation to be 'int' in all places.
>       This means changes in high level and low level GT interfaces.
>     ; QUESTION: In hbct UCHAR is used in a few places, I didn't want to
>                 touch it.

But you already touched it indirectly :-)
In the moment when you changed BYTE to int as color holder this code:
      const char * szAttr;
      ...
      hb_gtPutChar( iRow, i++, szAttr[ ul ], 0, ( UCHAR ) *szText++ );
begins to give wrong results. Now you have to add explicit casting
      hb_gtPutChar( iRow, i++, ( UCHAR ) szAttr[ ul ], 0, ( UCHAR ) *szText++ );
otherwise you will have problems with neagtive values.
We have to locate all places which can be affected by above modifications
and add such casting.
I'll commit in a while some additional modifications: we still cannot pass
unicode (U16) character in few places because BYTE is used.

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to