Page 1 of 1

How can I change default board size in xboard source?

PostPosted: 12 Nov 2009, 08:43
by vsoljan
I have some basic programming skills but was unable to find the part of the code where xboard decides on default board size (based on screen resolution). The thing is that I would like to change this default board size to one size smaller because on bigger screens (especially wide screen LCD TV) the board is too big (and distorted). Concerning this second issue - distortion on wide screens, is there an option for board aspect ratio (at least some kind of tweak in source code)?
Thanks!

Re: How can I change default board size in xboard source?

PostPosted: 12 Nov 2009, 09:27
by H.G.Muller
Look for a call to the function DisplayWidth in xboard.c.

Of course ou can simply call Xboard with the option -boardSize to request the board size you want. Usually you are not satisfied anyway with having all the settings default, and for XBoard that means you would want to call it through a shell script. You might as well put a -boardSize option in that shell script then.

Re: How can I change default board size in xboard source?

PostPosted: 16 Nov 2009, 08:30
by vsoljan
Thanks!