I lifted below test program out of a large code to get a handle on clearwin which was not behaving well when I compiled my code 64 bit (it basically showed a black rectangle obscuring the black text)
When I compile below test code win 32 it shows a black rectangle if I use the the original draw_filled_rectangle statements and a green rectangle if I use the tweaked version (guessed the tweaked number).
I have 2 questions
1- Why is the original part of the code (thats works within the larger program) not working, and
2- Could someone perhaps point me to the section of the Clearwin manual that explains the coloring for draw rectangle
Thanks,
PROGRAM main
use clrwin
implicit none
INTEGER winio@, ans
ans=winio@('%ww[no_maxminbox]&') ans=winio@('%bg[grey]&') ans=winio@('%sp&',0L,0L) ans=winio@('%gr[rgb_colours]&',800,570)
call set_rgb_colours_default@(0)
call set_line_width@(2)
! Original draw filled rectangle statements ! call draw_filled_rectangle@(196,146,605,286,7) ! call draw_filled_rectangle@(191,151,600,291,15)
! Tweaked draw filled rectangle statements call draw_filled_rectangle@(196,146,605,286,1671168) call draw_filled_rectangle@(191,151,600,291,1671168)
call draw_rectangle@(191,151,600,291,4) call draw_rectangle@(194,154,597,288,1) call size_in_pixels@(21,12) call bold_font@(1) call draw_characters@('** Initialisation **',275,235,4) call set_line_width@(1)
ans=winio@(' ') ! added this to draw the thing
END PROGRAM main