Suggested bug fix.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Suggested bug fix.

Lowell C. Savage
Bug fix to the BGI compatibility stuff.

Line 81, in "gtext.inc" in the "rtl\inc\graph" directory, needs to be the
following:


opcodes = (_END_OF_CHAR, _DO_SCAN, _DRAW = 253, _MOVE = 254 );


This is so that it can properly read the old Borland BGI font files with
line drawn fonts.

The original line (at least in V. 2.0.0) had just the default values and
"_MOVE" was before "_DRAW" so that "_MOVE" was 2 and "_DRAW" was 3.  When I
made this change, my program went from displaying nothing to displaying the
proper fonts.

Hope this helps.

Lowell C. Savage
[hidden email]



_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Suggested bug fix.

Florian Klämpfl
Lowell C. Savage wrote:

> Bug fix to the BGI compatibility stuff.
>
> Line 81, in "gtext.inc" in the "rtl\inc\graph" directory, needs to be
> the following:
>
>
> opcodes = (_END_OF_CHAR, _DO_SCAN, _DRAW = 253, _MOVE = 254 );
>
>
> This is so that it can properly read the old Borland BGI font files with
> line drawn fonts.

Applied, thx.

>
> The original line (at least in V. 2.0.0) had just the default values and
> "_MOVE" was before "_DRAW" so that "_MOVE" was 2 and "_DRAW" was 3.
> When I made this change, my program went from displaying nothing to
> displaying the proper fonts.
>
> Hope this helps.
>
> Lowell C. Savage
> [hidden email]
>
>
>
> _______________________________________________
> fpc-pascal maillist  -  [hidden email]
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal