X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/fa3abef5abe95dd9668a87b1cc57a724dcbf6354..fb539d1bfad3fc62cdec976e6676848903d637cc:/windows.c diff --git a/windows.c b/windows.c index 2364bdd..2a2262b 100644 --- a/windows.c +++ b/windows.c @@ -839,7 +839,7 @@ static void win_begin_puzzle(void *handle, float xm, float xc, * Work out what that comes to in pixels. */ pox = (int)(mmox * (float)ppw / mmpw); - poy = (int)(mmoy * (float)ppw / mmpw); + poy = (int)(mmoy * (float)pph / mmph); /* * And determine the scale.