Files
nethack/win/win32
nethack.allison b3417655da B08002 - win32gui: message window sizing (from <Someone>)
>>>  - When I set font and font size of the message window, the
>>>  message window size doesn't calculate correctly to show the
>>>  number of message lines specified. For example, I set the font
>>>  size to 6, and the number of messages to display to 8. Now
>>>  there is whitespace at the top of my message window. When I
>>>  set the font size to 14 now, I see only 5.5 message lines.
>>>  This is unintuitive: the interface should recalculate the
>>>  window size needed to display the correct number of lines.
>>>
>>  I agree, especially since the message window size is
>>  recalculated correctly if you save and restore. An easy way out
>>  would be to set those options to DISP_IN_GAME.
>
>  That seems like a good work-around until the proper fix is done.

The patch is attached. I moved the code that was computing the font
size to mswin_message_window_size(). This will cause the message
window to resize properly if the message font size changes. There
are also 2 minor bits in mswproc.c to invalidate the message window
when the font changes.
2002-08-21 23:14:27 +00:00
..
2002-01-22 22:54:54 +00:00
2002-01-22 22:54:54 +00:00
2002-03-10 22:30:47 +00:00
2002-01-22 22:54:54 +00:00
2002-01-27 15:19:36 +00:00
2002-03-12 23:07:59 +00:00
2002-03-11 03:17:49 +00:00
2002-03-04 22:55:45 +00:00
2002-02-05 13:21:43 +00:00
2002-02-05 13:21:43 +00:00
2002-03-10 17:41:11 +00:00
2002-04-18 22:11:34 +00:00
2002-03-04 22:55:45 +00:00
2002-08-20 00:04:34 +00:00
2002-03-27 12:17:26 +00:00
2002-02-05 13:21:43 +00:00
2002-03-18 21:44:09 +00:00
2002-03-03 16:46:40 +00:00
2002-04-01 21:27:23 +00:00
2002-03-04 22:40:01 +00:00
2002-04-01 21:23:38 +00:00
2002-02-05 13:21:43 +00:00
2002-03-25 00:01:31 +00:00
2002-02-05 13:21:43 +00:00
2002-03-24 23:57:19 +00:00
2002-03-24 23:57:19 +00:00
2002-03-24 23:57:19 +00:00
2002-04-07 12:51:28 +00:00
2002-03-10 22:30:47 +00:00
2002-03-03 16:51:46 +00:00
2002-03-04 22:40:01 +00:00
2002-03-14 12:54:06 +00:00
2002-01-22 22:54:54 +00:00
2002-04-21 13:22:57 +00:00
2002-03-28 14:24:29 +00:00