gfx.c
changeset 2753 15012faaa68a
parent 2658 4ecf9bbf3258
child 2952 6a26eeda9679
child 9918 a151c4749c7a
equal deleted inserted replaced
2752:b5fe5a7e6282 2753:15012faaa68a
   482 
   482 
   483 void DrawStringMultiLine(int x, int y, StringID str, int maxw)
   483 void DrawStringMultiLine(int x, int y, StringID str, int maxw)
   484 {
   484 {
   485 	char buffer[512];
   485 	char buffer[512];
   486 	uint32 tmp;
   486 	uint32 tmp;
   487 	int num, w, mt;
   487 	int num, mt;
   488 	const char *src;
   488 	const char *src;
   489 	byte c;
   489 	byte c;
   490 
   490 
   491 	GetString(buffer, str);
   491 	GetString(buffer, str);
   492 
   492 
   500 	}
   500 	}
   501 
   501 
   502 	src = buffer;
   502 	src = buffer;
   503 
   503 
   504 	for(;;) {
   504 	for(;;) {
   505 		w = GetStringWidth(src);
       
   506 		DoDrawString(src, x, y, 0xFE);
   505 		DoDrawString(src, x, y, 0xFE);
   507 		_stringwidth_base = _stringwidth_out;
   506 		_stringwidth_base = _stringwidth_out;
   508 
   507 
   509 		for(;;) {
   508 		for(;;) {
   510 			c = *src++;
   509 			c = *src++;