I'm trying to program a chess based game and use mouse x+y to work out which square is clicked on. This is fine while the screen is at the size I programed for but I would like to give players the option to resize or full screen the game. At that point my maths won't work anymore. How can I recalculate all the x,y positions of the squares depending on screen size?
Attachment 114403

