Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old June 20, 2012, 10:59   #1
PowerWyrm
Knight
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 722
PowerWyrm is on a distinguished road
[3.4RC - Win32 client] Map not displayed properly when number of columns is too high

If you expand your Win32 client so that the number of columns displayed is high enough and you select Options/Map, the map is not properly displayed. This comes from the fact that Term_wipe_win() doesn't check for td->map_active like all other functions and erases an incorrect part of the window when displaying the full map.

To fix the problem, copy/paste the code from Term_curs_win():

replace

Code:
	/* Rectangle to erase in client coords */
	rc.left = x * td->tile_wid + td->size_ow1;
	rc.right = rc.left + n * td->tile_wid;
	rc.top = y * td->tile_hgt + td->size_oh1;
	rc.bottom = rc.top + td->tile_hgt;
by

Code:
	int tile_wid, tile_hgt;

	if (td->map_active)
	{
		tile_wid = td->map_tile_wid;
		tile_hgt = td->map_tile_hgt;
	}
	else
	{
		tile_wid = td->tile_wid;
		tile_hgt = td->tile_hgt;
	}

	/* Rectangle to erase in client coords */
	rc.left = x * tile_wid + td->size_ow1;
	rc.right = rc.left + n * tile_wid;
	rc.top = y * tile_hgt + td->size_oh1;
	rc.bottom = rc.top + tile_hgt;
Note that the client completely screws up displaying tiles when the number of columns reaches 255 due to the fact that this number is stored on a byte (see another post about the subject). So the problem is probably masked by another bug in the current code. A workaround would simply be to limit the number of columns to 255, it should give a large enough display.
__________________
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.4RC - Win32 client] Minimap with tiles PowerWyrm Vanilla 3 June 20, 2012 08:32
Chengband Win32 interface slow under Win7 Therem Harth Variants 8 May 19, 2012 18:55
3.3.0 Treasure not displayed Dranken Vanilla 4 August 31, 2011 19:24
How exactly... does one properly emply a ring of delving.. saw Vanilla 6 July 28, 2010 09:37
SVN: pvals no longer displayed (bug!) Pete Mack Vanilla 1 January 24, 2009 19:01


All times are GMT +1. The time now is 20:17.


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