Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Old April 18, 2012, 14:17   #1
PowerWyrm's Avatar
Join Date: Apr 2008
Posts: 2,455
PowerWyrm is on a distinguished road
[3.4-dev] Minor bugs with Win client

1) term_force_font
This is called twice: in term_change_font and init_windows. The first time, it correctly sets defaut tile width/height with font width/height, but sets "bizarre" flag incorrectly (should be set only if font has been forced to default). The second time, it uses hardcoded values of 8 and 13, which is incorrect since the default font is now 8x12.
Fix: make a static function and call that twice to avoid the error (and this removes duplicate code at the same time)

2) New default layout (since 15/04)
The new default layout uses string_make for default fonts. However, the default fonts have already been allocated in load_prefs_aux, leading to some memory leaks.
Fix: call string_free in default_layout_win before calls to string_make
PWMAngband variant maintainer - check (or to learn more about this new variant!
PowerWyrm is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
3.3RC: minor bugs bulian Development 8 July 6, 2011 21:44
Minor nightlies bugs Derakon Development 16 April 5, 2011 07:47
A couple of minor bugs in bron Vanilla 11 January 4, 2010 23:40
3.1-dev: Call for bugs and patches takkaria Vanilla 17 January 7, 2009 17:42
V dev bugs Pete Mack Vanilla 5 September 22, 2008 01:38

All times are GMT +1. The time now is 03:29.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.