Progress-info for XFONT_BuildMetrics()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

reaktivate now sets up its own WINEPREFIX to avoid problems with different or 
non-existing wine configurations. On first run, I currently display a message 
"Building font database. Please wait...". The attached patch allows for 
proper progress info during this step. IMHO it's generally useful both for 
commandline use as well as any possible GUI frontend that runs wine the first 
time.

Regards,
-Malte
-- 
#!/usr/bin/perl
$t='char|short|int|long|void';%m=qw(U "unsigned\040$3" W "w$3_t");while(<>)
{/#define UNICODE/and$m{T}=$m{W};s/\b(LP)?([UWT])?($t)\b/lc(eval$m{$2}||$3)
.($1?'*':'')/gei;print;}print"/* Cleaned by Malte's WinAPI sanitizer */\n";
Index: xfont.c
===================================================================
RCS file: /home/wine/wine/graphics/x11drv/xfont.c,v
retrieving revision 1.107
diff -u -3 -d -p -r1.107 xfont.c
--- xfont.c	28 Aug 2002 22:35:23 -0000	1.107
+++ xfont.c	16 Oct 2002 09:21:21 -0000
@@ -2036,6 +2036,7 @@ static int XFONT_BuildMetrics(char** x_p
 
 	if (!(typeface = HeapAlloc(GetProcessHeap(), 0, strlen(x_pattern[i])+1))) break;
 	strcpy( typeface, x_pattern[i] );
+	if (i % 10 == 0) MESSAGE("Font metrics: %.1f%% done\n", 100.0 * i / x_count);
 
 	lfd = LFD_Parse(typeface);
 	if (!lfd)

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux