Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old April 18, 2012, 13:17   #1
PowerWyrm
Knight
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 720
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 http://www.mangband.org/forum/viewforum.php?f=9 to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Reply


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 20:44
Minor nightlies bugs Derakon Development 16 April 5, 2011 06:47
A couple of minor bugs in 3.1.1.1626 bron Vanilla 11 January 4, 2010 22:40
3.1-dev: Call for bugs and patches takkaria Vanilla 17 January 7, 2009 16:42
V dev bugs Pete Mack Vanilla 5 September 22, 2008 00:38


All times are GMT +1. The time now is 22:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.