[Pkg-wmaker-commits] [wmbiff] 09/84: indent run

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:01:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to tag wmbiff_0_4_10
in repository wmbiff.

commit 595f031277b9948e89305da007002fd7514241f5
Author: bluehal <bluehal>
Date:   Sat Jun 1 06:47:43 2002 +0000

    indent run
---
 wmgeneral/wmgeneral.c | 45 +++++++++++++++++++++++++++------------------
 1 file changed, 27 insertions(+), 18 deletions(-)

diff --git a/wmgeneral/wmgeneral.c b/wmgeneral/wmgeneral.c
index 7af5637..eb4a08a 100644
--- a/wmgeneral/wmgeneral.c
+++ b/wmgeneral/wmgeneral.c
@@ -362,11 +362,12 @@ void createXBMfromXPM(char *xbm, const char **xpm, int sx, int sy)
 |* copyXPMArea																   *|
 \*******************************************************************************/
 
-void copyXPMArea(int src_x, int src_y, int width, int height, int dest_x, int dest_y)
+void copyXPMArea(int src_x, int src_y, int width, int height, int dest_x,
+				 int dest_y)
 {
 
-	XCopyArea(display, wmgen.pixmap, wmgen.pixmap, NormalGC, src_x, src_y, 
-              width, height, dest_x, dest_y);
+	XCopyArea(display, wmgen.pixmap, wmgen.pixmap, NormalGC, src_x, src_y,
+			  width, height, dest_x, dest_y);
 
 }
 
@@ -374,30 +375,38 @@ void copyXPMArea(int src_x, int src_y, int width, int height, int dest_x, int de
 |* copyXBMArea																   *|
 \*******************************************************************************/
 
-void copyXBMArea(int src_x, int src_y, int width, int height, int dest_x, int dest_y)
+void copyXBMArea(int src_x, int src_y, int width, int height, int dest_x,
+				 int dest_y)
 {
 
-	XCopyArea(display, wmgen.mask, wmgen.pixmap, NormalGC, src_x, src_y, 
-              width, height, dest_x, dest_y);
+	XCopyArea(display, wmgen.mask, wmgen.pixmap, NormalGC, src_x, src_y,
+			  width, height, dest_x, dest_y);
 }
 
 
 /* added for wmbiff */
 XFontStruct *f;
-void loadFont(const char *fontname) {
-  if(display!=NULL){
-    f = XLoadQueryFont(display, fontname);
-    if(f) XSetFont(display, NormalGC, f->fid);
-    else printf("couldn't set font!\n");
-  }
+void loadFont(const char *fontname)
+{
+	if (display != NULL) {
+		f = XLoadQueryFont(display, fontname);
+		if (f)
+			XSetFont(display, NormalGC, f->fid);
+		else
+			printf("couldn't set font!\n");
+	}
 }
-void drawString(int dest_x, int dest_y, const char *string, const char *colorname, 
-                int right_justify) {
-  int len = strlen(string);
-  XSetForeground(display, NormalGC, GetColor(colorname));
-  if(right_justify) dest_x -= XTextWidth(f, string, len);
-  XDrawString(display, wmgen.pixmap, NormalGC, dest_x, dest_y, string, len);
+void drawString(int dest_x, int dest_y, const char *string,
+				const char *colorname, int right_justify)
+{
+	int len = strlen(string);
+	XSetForeground(display, NormalGC, GetColor(colorname));
+	if (right_justify)
+		dest_x -= XTextWidth(f, string, len);
+	XDrawString(display, wmgen.pixmap, NormalGC, dest_x, dest_y, string,
+				len);
 }
+
 /* end wmbiff additions */
 
 /*******************************************************************************\

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git



More information about the Pkg-wmaker-commits mailing list