Wed 19 Sep 2001

  • X (XDrawRectangle): Awful discovery. I had assumed that drawing a rectangle with XDrawRectangle meant that it drew a rectangle at [x, y], with sides width and height pixels wide. Unfortunately, it draws the rectangle determined by the points [x, y], [x + width, y], [x + width, y + height], [x, y + height]. This means that the sides are (width + 1) and (length + 1) pixels wide and long. This also explains a lot of the minor drawing/sizing bugs in the GtkTreeView. I fear I’ve just remade a classic X mistake.

  • airplane: Finally took off (an hour late). Food just arrived. I wish I could suspend.

  • pixels: Off a pixel, on a pixel, correct pixel, wrong pixel. What a funny word. I can’t think of anything that rhymes with it.

Leave a Reply

Your email address will not be published. Required fields are marked *