The following code runs fine. However if the smooth4 or smooth8 option for the %gr are used, parts of the drawing are not show. I am using the latest release of the compiler.
program main
implicit none
integer view_graphics_cb
integer i
i = view_graphics_cb()
end program main
integer function view_graphics_cb()
implicit none
include<windows.ins>
integer i
integer, parameter :: gw = 400, gh = 400
i = winio@('%gr&',gw,gh)
!$$$$$$ i = winio@('%gr[smooth4]&',gw,gh) !Use one of these instead of the line above
!$$$$$$ i = winio@('%gr[smooth8]&',gw,gh)
call SET_LINE_WIDTH@(1)
call SET_LINE_STYLE@(PS_SOLID)
call draw_ellipse@(gw/2, gh/2 + 0, 20, 20, rgb@(0,0,0))
call draw_ellipse@(gw/2, gh/2 + 20, 20, 20, rgb@(0,0,0))
call draw_filled_rectangle@(gw/2 - 50, 60, gw/2 + 50, 70, rgb@(0,0,0))
call draw_filled_rectangle@(gw/2 - 50, gh-60, gw/2 + 50, gh-70, rgb@(0,0,0))
call draw_line_between@(gw/2, 60, gw/2, gh/2-20, rgb@(0,0,0))
call draw_line_between@(gw/2, gh-60, gw/2, gh/2+40, rgb@(0,0,0))
i = winio@(' ')
view_graphics_cb = 1
end function view_graphics_cb
