I am using wxPython 2.8.7.1 on Ubuntu 8.04 and Windows XP SP2. When drawing vertical and horizontal lines with odd number widths (usually 1 pixel) I found in wxGTK that I have to offset them by 0.5 to prevent them from being blurred. However, in Windows, adding the offset will make them blurry - they are crisp without the offset.
Is the behavior here supposed to be the same across platforms? Are you supposed to have to offset these lines manually on all platforms, or on some, or none? I was thinking of working around it by doing something like this:
if platform==wxGTK:
offset=0.5
elif platform==wxMSW:
offset=0
else
??? (what about Mac?)
and then adding offset to all such lines. Is there anything better?
I am using wxPython 2.8.7.1 on Ubuntu 8.04 and Windows XP SP2. When drawing vertical and horizontal lines with odd number widths (usually 1 pixel) I found in wxGTK that I have to offset them by 0.5 to prevent them from being blurred. However, in Windows, adding the offset will make them blurry - they are crisp without the offset.
I am using wxPython 2.8.7.1 on Ubuntu 8.04 and Windows XP SP2. When drawing vertical and horizontal lines with odd number widths (usually 1 pixel) I found in wxGTK that I have to offset them by 0.5 to prevent them from being blurred. However, in Windows, adding the offset will make them blurry - they are crisp without the offset.