Le 17/11/2011 20:40, T.D. Telford a écrit :
Thank you for the reply. I have attached 2 programs.
The first, diagonal.pas, draws a line diagonal, but it is not completely drawn. If you uncomment the code to draw the second diagonal, then the first diagonal is completely drawn, while the second one is not complete.
The second program, circle.pas, draws a filled circle. Then getImage and putImage are used to draw a second filled circle. The second circle is not displayed. If you uncomment the code to draw the third filled circle, then the second circle is displayed, but not the third.
I have had the same problem with writing text to the graphics window. The last part of the text is not displayed. If I write some additional text (in the background color), then all of the original text is displayed.
I am using grx 2.4.8 on a linux fedora 15 x86_64 system, gpc version 20060325, based on gcc-3.4.4 (which I compiled).
Please apply to grx 2.4.8 the attached patch which defines a GrFlush procedure and recompile grx. It solves the problem for your two demo programs in x11 if you add GrFlush just before the final readln. Try on your other programs. For other systems the function is defined to keep compatibility, but dummy, because I have found that your demo programs do not need it.
Maurice