GNOME Bugzilla – Bug 154982
Drawing area is one pixel too small
Last modified: 2004-12-22 21:47:04 UTC
Paolo's drawing improvements* add border grid lines at the right and the bottom of the drawing area; but because the size of the drawing area is always a multiple of FIELDSIZE, the rightmost and bottom grid lines appear shifted one pixel to the left and up, respectively. * improvements you say? draw_grid() repaints the entire grid whenever a (possibly tiny) part of the drawing area needs to be updated!
Created attachment 32431 [details] [review] Fix bug #154982, incorrect drawing of rightmost and bottom grid lines The change in configure_even_callback is a matter of taste; it provides identical results due to integer division.
Oh, maybe use GRID_LINE_WIDTH instead of the 1's to make the code more maintainable and self-explanatory?
I've simplified the patch even further, the xboxsize and yboxsize code is from before games_gridframe so I just set boxsize directly off the width since both should be identical. Technically gnect is also affected, but it hides it fairly well so I'm not going to fix it. (The fix doesn't seem simple since it implies negative padding.)