Commit Graph
275 Commits
Author SHA1 Message Date
nethack.allison cb6a93641b Adjust window-port related option processing
to allow common parsing in the core, and direct access to the
results by the window port.

Notes:

o Adds a new field, wincap, to the window_procs
structure for setting bits related to the preference
features that the window port supports.  This allows
run-time determination of whether a particular option
setting is applicable to the running window port.  A
window-port is free to support as many, or as few,
of the available options as it wants.  Ensure that
only the ones supported have their corresponding bit
set in window_proc.wincap. [see chart in
doc/window.doc for help with that.]

o The settings I stuck into wincap for each window
port are almost certainly not accurate, so each port
team should review them.  You should only include
the ones that you will actually react to and make
adjustments for if the user changes that option.
Without the setting in wincap, the option won't even
show up in the 'O'ptions menu.

o preference_update() added to the window-port
interface, so that the window-port can be notified
if an option of interest (an option with its
corresponding bit set in wincap field) is
changed.

o provided a genl_preference_update() routine in
windows.c and used it for all the existing
window ports since they don't have a functional
one of their own yet.

o this messes around heavily with iflags and the options
arrays in options.c

o I hope I didn't break any port's existing code. I
tried not to.  The Mac however, in particular, should
be looked at because it suffered a namespace collision
with what I was working on around fontname.  It had
Mac specific font stuff in options.c. Please test
the Mac.
2002-02-03 05:31:47 +00:00
cohrs a80a7ab939 X11 buffer overflow avoidance
Don't overflow the buffer passed to getlin().
2002-01-23 06:21:58 +00:00
cohrs c77073be31 sync changes since last snapshot 2002-01-07 02:12:04 +00:00
jwalz 244d692830 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz 151a25df14 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz a91cc7270f *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz 25e8787986 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz 51c77c339e *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz ddc2aa945c *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz 3b626d43f5 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz fc32b8449d *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz e05bd7f847 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz c7f9ab9a77 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz 9b3573ac39 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz 055f3a5850 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz d65638f405 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz 994b738270 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz 97746c89e6 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz a101b497c4 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz 5d99d6459a *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz 6cb5d708ad *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz fa8a48aff1 *** empty log message *** 2002-01-05 21:06:03 +00:00
jwalz 19f468b3ed *** empty log message *** 2002-01-05 21:06:02 +00:00
jwalz 89005a14e4 *** empty log message *** 2002-01-05 21:06:02 +00:00
jwalz 369c06d179 *** empty log message *** 2002-01-05 21:06:02 +00:00