aboutsummaryrefslogtreecommitdiffstats
path: root/w3mimgdisplay.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-07-07 15:49:03 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-07-07 15:49:03 +0000
commit851c96514ff7e6ccb0c97f797c5e7bae3ab19799 (patch)
tree808cc4a7ef5eb25d71c357079934da72b12195c3 /w3mimgdisplay.c
parent[w3m-dev 03929] clear image (diff)
downloadw3m-851c96514ff7e6ccb0c97f797c5e7bae3ab19799.tar.gz
w3m-851c96514ff7e6ccb0c97f797c5e7bae3ab19799.zip
fix indent
Diffstat (limited to 'w3mimgdisplay.c')
-rw-r--r--w3mimgdisplay.c42
1 files changed, 22 insertions, 20 deletions
diff --git a/w3mimgdisplay.c b/w3mimgdisplay.c
index 6ec24cc..67f0305 100644
--- a/w3mimgdisplay.c
+++ b/w3mimgdisplay.c
@@ -1,4 +1,4 @@
-/* $Id: w3mimgdisplay.c,v 1.14 2003/07/07 15:48:16 ukai Exp $ */
+/* $Id: w3mimgdisplay.c,v 1.15 2003/07/07 15:49:03 ukai Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@@ -61,7 +61,7 @@ main(int argc, char **argv)
w_op->max_anim = maxAnim;
if (defined_test) {
- printf("%d %d\n", w_op->width - w_op->offset_x,
+ printf("%d %d\n", w_op->width - w_op->offset_x,
w_op->height - w_op->offset_y);
exit(0);
}
@@ -98,21 +98,21 @@ main(int argc, char **argv)
* +--+--+--+--+ .......+--+--+
*
* args is separeted by ';'
- * op args
- * 0; params draw image
- * 1; params redraw image
- * 2; -none- terminate drawing
- * 3; -none- sync drawing
- * 4; -none- nop, sync communication
- * response '\n'
- * 5; path get size of image,
- * response "<width> <height>\n"
- * 6; params(6) clear image
+ * op args
+ * 0; params draw image
+ * 1; params redraw image
+ * 2; -none- terminate drawing
+ * 3; -none- sync drawing
+ * 4; -none- nop, sync communication
+ * response '\n'
+ * 5; path get size of image,
+ * response "<width> <height>\n"
+ * 6; params(6) clear image
*
* params
- * <n>;<x>;<y>;<w>;<h>;<sx>;<sy>;<sw>;<sh>;<path>
+ * <n>;<x>;<y>;<w>;<h>;<sx>;<sy>;<sw>;<sh>;<path>
* params(6)
- * <x>;<y>;<w>;<h>
+ * <x>;<y>;<w>;<h>
*
*/
switch (buf[0]) {
@@ -139,11 +139,13 @@ main(int argc, char **argv)
if (w_op->get_image_size(w_op, &img, &buf[2], &w, &h)) {
fprintf(stdout, "%d %d\n", w, h);
fflush(stdout);
- } else {
+ }
+ else {
fprintf(stdout, "\n");
fflush(stdout);
}
- } else {
+ }
+ else {
fprintf(stdout, "\n");
fflush(stdout);
}
@@ -253,7 +255,7 @@ DrawImage(char *buf, int redraw)
if (n < 0 || n >= MAX_IMAGE)
return;
if (redraw) {
- if (! w_op->active(w_op) || n >= maxImage || !imageBuf[n].pixmap)
+ if (!w_op->active(w_op) || n >= maxImage || !imageBuf[n].pixmap)
return;
goto draw_image;
}
@@ -267,7 +269,7 @@ DrawImage(char *buf, int redraw)
else if (n >= maxImage)
maxImage = n + 1;
imageBuf = (W3MImage *) realloc((void *)imageBuf,
- sizeof(W3MImage) * maxImage);
+ sizeof(W3MImage) * maxImage);
for (; i < maxImage; i++)
imageBuf[i].pixmap = NULL;
}
@@ -277,11 +279,11 @@ DrawImage(char *buf, int redraw)
}
if (w_op->load_image(w_op, &imageBuf[n], p, w, h) == 0)
- imageBuf[n].pixmap = NULL;
+ imageBuf[n].pixmap = NULL;
draw_image:
if (imageBuf[n].pixmap)
- w_op->show_image(w_op, &imageBuf[n], sx, sy, sw, sh, x, y);
+ w_op->show_image(w_op, &imageBuf[n], sx, sy, sw, sh, x, y);
}
void