Does wxGTK have an internal limit?
Carsten A. Arnholm
arnholm at offline.no
Fri Dec 7 03:49:46 PST 2007
Jason Lee wrote:
> Hi, all.
>
> I found wxGTK can't draw a line more that 32768 pixels.
>
> I've posted a thread on wxForum:
> http://wxforum.shadonet.com/viewtopic.php?t=16991
>
> I've trace the source of wxGTK, and it calls gdk_draw_line() to draw a
> line.
> Does it really a bug? Please help to solve this problem. Thanks.
32767 is the maximum value of a signed 16bit integer, i.e. (2**15)-1
That might be a clue to the problem. If the value cannot be negative, it
would be a better idea to use unsigned interegers.
--
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457
More information about the wx-users
mailing list