EMEMCOPY.E
- Posted by Mathew Hounsell <mat.hounsell at MAILEXCITE.COM> Sep 15, 1998
- 409 views
Well.... > sequence virtualmonitor > virtualmonitor = {{},{}} > wt = 1023 > ht = 767 > virtualmonitor[1] = {wt, ht} > virtualmonitor[2] = allocate(wt*ht) > display_svga_image(1, virtualmonitor[2], {wt,ht}, {0,0}) The reason the image is skewing is the virtual screen is not as wide as the real one. So the library copies in all the bytes but it's just not big enough. It should be one pixel to the left. Try allocating the correct width but still 767 high. See if it works and if it is skewed. I guess from the call it tries to copy the full buffer. Try allocating the correct size. Fill the bytes that you weren't copying ( the last 767+1024 , at virtualmonitor[2] + 1023*767 ) with a set colour, say Magenta (Pink-Ish : 63,63,00) and then if you see a Magenta line around the bottom it is copying the full screen. Otherwise the library might be of by one, copying to little. But that shouldn't cause a Causeway Exception. --- Sincerely, Mathew Hounsell Mat.Hounsell at Mailexcite.Com Free web-based email, Forever, From anywhere! http://www.mailexcite.com