David,
After running your program on both Windows and Linux, I confirm what you
see on Windows. Linux however gives a correct behavior. So we are dealing
with Windows specific bug. Hopefully, we'll have a fix for it by the next
Windows binary release.
Thanks,
Jafar
On Mon, Oct 10, 2011 at 9:55 AM, David Gamey <[email protected]> wrote:
> Hi Folks,
>
> I think I found some strange behaviour using DrawImage on Windows 7/x64. It
> left me scratching my head. I reduced it to the demo below.
>
>
> The code repeats, each pass a red lower and right edge are drawn and a
> bi-level pattern representing a broken 2x8 bar is drawn x,0 and with each
> pass x advances. Any event (e.g.keypress) is used to slow it down for
> visibility.
>
> I expected that the 2x8 bar would just slide across ending up to the right
> of the red line. What I got was the bar sliding with truncation on the
> right. The bar gets shorter and shorter eventually vanishing!
>
> link ximage,printf
>
> procedure main()
> printf("&version=%s",&version)
>
> &window := open("DrawImage
> Behaviour","g","size=200,200","pos=100,100","bg=black")
>
> every x := 0 to 16 by 1 do {
> EraseArea()
> WAttrib("fg=red")
> DrawLine(0,20,9,20,9,20,9,0)
>
> WAttrib("fg=white")
> DrawImage(x,0,"8,~E7E7")
> Event()
> }
> close(&window)
> end
>
>
> Output: &version=Unicon Version 12.0. July 13, 2011
>
>
> Thanks David
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Unicon-group mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/unicon-group
>
>
--
"Let there be no compulsion in religion: Truth stands out clear from error"
[The Holy Qur'an 2:256]
"Injustice anywhere is a threat to justice everywhere" Dr. King
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group