Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!shelby!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU Newsgroups: comp.windows.x Subject: Re: Question (Bug?) in XCopyArea Message-ID: <9102281044.AA10811@lightning.McRCIM.McGill.EDU> Date: 28 Feb 91 10:44:50 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 24 > I am using XCopyArea to copy a region in a window into a pixmap and > then to copy it back from the pixmap to the window. The problem I am > encountering is this: the region is being copied onto the window with > a black band on top and on the right side of the pixmap exactly equal > in size to the position of the origin of the window from the > upper-left hand corner of the screen. [diagram making clear the above should be "top and left side".] > The rest of the Pixmap seems to copy correctly. Does this mean that the area that's not the black band is the corner of the window, or that part of the window that's inset from the corner by the size of the black band? If the former, I suspect one problem; if the latter, I'm not as sure, but another possibility comes to mind. In any case, I'd need to see the code, in particular the XCopyArea calls being used to copy in each direction. I suspect you simply have some of the coordinates wrong.... der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu