(svn r768) In the NewGRF manager, show GRF ids as 8-digit hex numbers (that's how they are supposed to look).
authorpasky
Mon, 22 Nov 2004 21:48:40 +0000
changeset 486 dadcb8d5a6bd
parent 485 453c096beb1b
child 487 03a9f4ffe58b
(svn r768) In the NewGRF manager, show GRF ids as 8-digit hex numbers (that's how they are supposed to look).
settings_gui.c
--- a/settings_gui.c	Mon Nov 22 21:41:25 2004 +0000
+++ b/settings_gui.c	Mon Nov 22 21:48:40 2004 +0000
@@ -982,8 +982,8 @@
 	
 			// draw grf id
 			x = DrawString(5, 209, STR_NEWGRF_GRF_ID, 0);
-			SET_DPARAM16(0, _sel_grffile->grfid);
-			DrawString(x + 2, 209, STR_7024, 0x01);
+			snprintf(_userstring, USERSTRING_LEN, "%08X", _sel_grffile->grfid);
+			DrawString(x + 2, 209, STR_SPEC_USERSTRING, 0x01);
 		}
 	} break;