X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=filebrowser%2Fdraw.c;h=a5b85f52c941cf64e8f497d4567eab44e6f28aa0;hb=18c9024957df2892adb21cd851cb7a27b9502d54;hp=47efa17abaea05a4282a1edd96052d2152c40396;hpb=74c6f0bfb6476b2ba21f90d9e5d34130b26825ef;p=xboard.git diff --git a/filebrowser/draw.c b/filebrowser/draw.c index 47efa17..a5b85f5 100644 --- a/filebrowser/draw.c +++ b/filebrowser/draw.c @@ -59,6 +59,7 @@ static int SFcurrentListY; static XtIntervalId SFscrollTimerId; +void SFinitFont() { TextData *data; @@ -84,8 +85,10 @@ SFinitFont() SFcharWidth = (SFfont->max_bounds.width + SFfont->min_bounds.width) / 2; SFcharAscent = SFfont->max_bounds.ascent; SFcharHeight = SFcharAscent + SFfont->max_bounds.descent; + return; } +void SFcreateGC() { XGCValues gcValues; @@ -149,8 +152,10 @@ SFcreateGC() 1, Unsorted ); + return; } +void SFclearList(n, doScroll) int n; int doScroll; @@ -191,9 +196,10 @@ SFclearList(n, doScroll) (float) 1.0); } } + return; } -static +static void SFdeleteEntry(dir, entry) SFDir *dir; SFEntry *entry; @@ -242,15 +248,17 @@ SFdeleteEntry(dir, entry) (float) (((double) ((dir->nEntries < SFlistSize) ? dir->nEntries : SFlistSize)) / dir->nEntries) ); + return; } -static +static void SFwriteStatChar(name, last, statBuf) char *name; int last; struct stat *statBuf; { name[last] = SFstatChar(statBuf); + return; } static int @@ -320,7 +328,7 @@ SFstatAndCheck(dir, entry) return 0; } -static +static void SFdrawStrings(w, dir, from, to) register Window w; register SFDir *dir; @@ -395,8 +403,10 @@ SFdrawStrings(w, dir, from, to) ); } } + return; } +void SFdrawList(n, doScroll) int n; int doScroll; @@ -420,8 +430,10 @@ SFdrawList(n, doScroll) ); SFdrawStrings(w, dir, 0, SFlistSize - 1); } + return; } +void SFdrawLists(doScroll) int doScroll; { @@ -430,9 +442,10 @@ SFdrawLists(doScroll) for (i = 0; i < NR; i++) { SFdrawList(i, doScroll); } + return; } -static +static void SFinvertEntry(n) register int n; { @@ -445,6 +458,7 @@ SFinvertEntry(n) SFentryWidth, SFentryHeight ); + return; } static unsigned long @@ -620,6 +634,7 @@ SFmotionList(w, n, event) SFinvertEntry(n); } } + return; } /* ARGSUSED */