[racket-users] Re: Converting mouse event coordinates to coordinates in canvas dc

2018-01-20 Thread Pan Daimonium
Sorry, please disregard this. The coordinates are already correct, it was a totally unrelated bug that was causing the issue. On Saturday, 20 January 2018 04:01:12 UTC-5, Pan Daimonium wrote: > > Hi, > > I am trying to make a narrow-purpose graphical editor by subclassing > canva

[racket-users] Converting mouse event coordinates to coordinates in canvas dc

2018-01-20 Thread Pan Daimonium
Hi, I am trying to make a narrow-purpose graphical editor by subclassing canvas%. I'm reading mouse events to get coordinates, but they're coordinates on screen, and when I try to draw the results to the canvas' dc, they appear in the wrong place. I'm wondering what is the best way to convert