From: <dr...@hw...> - 2005-11-21 12:23:05
|
Paul Mackerras <paulus=40samba.org> wrote: > Recently there has been some discussions on the git mailing list about > the fact that some of the history graph lines in the gitk display get > misdrawn sometimes. Some people are suggesting that there is a 16-bit > limit on canvas coordinates in Tk, i.e. the coordinates must be > between -32768 and 32767. I don't believe that can be right, or we > would be seeing far worse problems than we are seeing. Depending on > font size and repository complexity, gitk uses canvases that are > several hundred pixels wide and anything up to millions of pixels > high. >=20 > Could someone confirm whether canvas coordinates do in fact need to be > limited to the range =5B-32768, 32767=5D? >=20 X11 and Win32 limit the size of windows to 32768 pixels in either direction. But the canvas widget has code in place to work around those limits. Coordinates in a canvas widget are stored as doubles and can thus be really big. =20 Of course, I suppose there could be bugs in the code that works around the 16-bit limit of X11 and Win32. It is not a piece of code that is used that often, after all. Perhaps you could submit a bug report with a specific example that fails. -- D. Richard Hipp <drh=40hwaci.com> |