Go Back   Angband Forums > Angband > Vanilla

Thread Tools Display Modes
Old June 20, 2012, 10:59   #1
PowerWyrm's Avatar
Join Date: Apr 2008
Posts: 2,403
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():


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

	int tile_wid, tile_hgt;

	if (td->map_active)
		tile_wid = td->map_tile_wid;
		tile_hgt = td->map_tile_hgt;
		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; = y * tile_hgt + td->size_oh1;
	rc.bottom = + 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 (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.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 16:13.

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