How can I change default board size in xboard source?

Discussions about the WinBoard protocol. Here you can also report bugs and request new features.

Moderators: hgm, Andres Valverde

How can I change default board size in xboard source?

Postby vsoljan » 12 Nov 2009, 08:43

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!
vsoljan
 
Posts: 24
Joined: 28 Sep 2009, 14:15

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

Postby H.G.Muller » 12 Nov 2009, 09:27

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.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

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

Postby vsoljan » 16 Nov 2009, 08:30

Thanks!
vsoljan
 
Posts: 24
Joined: 28 Sep 2009, 14:15


Return to WinBoard development and bugfixing

Who is online

Users browsing this forum: No registered users and 19 guests