As some of you may know, I wrote an application called Maze Runner, and released it on my website. I have since discovered (and fixed) a strange bug in the editor that caused the coordinates in the maze for the square you're editing to be computed incorrectly if the maze was scrolled to any place other than the upper-left corner. The fix was rather odd, though - after some experimenting, I determined that the coordinates were off by an amount related to the position of the scroll bars (for instance, if the maze was scrolled one unit down and zero units right, the X-coordinate would be 1 too big, and the Y-coordinate 1 too small). What I did was computed the scroll offset for each scrollbar, and added one, subtracted the other from X, flipping the signs for Y. Weird, I know - but it works. 
Anyone else encountered something like this?
Anyone else encountered something like this?