Mercurial > MadButterfly
comparison src/shape_rect.c @ 822:586e50f82c1f
Unify coding style tag for emacs and vim.
author | Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com> |
---|---|
date | Tue, 14 Sep 2010 01:08:39 +0800 |
parents | 16116d84bc5e |
children | 9a7ac4487849 |
comparison
equal
deleted
inserted
replaced
821:bfdc82bbd6e4 | 822:586e50f82c1f |
---|---|
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- | |
2 // vim: sw=4:ts=8:sts=4 | |
1 #include <stdio.h> | 3 #include <stdio.h> |
2 #include <stdlib.h> | 4 #include <stdlib.h> |
3 #include <string.h> | 5 #include <string.h> |
4 #include "mb_types.h" | 6 #include "mb_types.h" |
5 #include "mb_shapes.h" | 7 #include "mb_shapes.h" |
75 poses[0][1] = y; | 77 poses[0][1] = y; |
76 poses[1][0] = x + w; | 78 poses[1][0] = x + w; |
77 poses[1][1] = y; | 79 poses[1][1] = y; |
78 poses[2][0] = x + w; | 80 poses[2][0] = x + w; |
79 poses[2][1] = y + ry; | 81 poses[2][1] = y + ry; |
80 | 82 |
81 poses[3][0] = x + w; | 83 poses[3][0] = x + w; |
82 poses[3][1] = y + h - ry; | 84 poses[3][1] = y + h - ry; |
83 poses[4][0] = x + w; | 85 poses[4][0] = x + w; |
84 poses[4][1] = y + h; | 86 poses[4][1] = y + h; |
85 poses[5][0] = x + w - rx; | 87 poses[5][0] = x + w - rx; |
86 poses[5][1] = y + h; | 88 poses[5][1] = y + h; |
87 | 89 |
88 poses[6][0] = x + rx; | 90 poses[6][0] = x + rx; |
89 poses[6][1] = y + h; | 91 poses[6][1] = y + h; |
90 poses[7][0] = x; | 92 poses[7][0] = x; |
91 poses[7][1] = y + h; | 93 poses[7][1] = y + h; |
92 poses[8][0] = x; | 94 poses[8][0] = x; |
93 poses[8][1] = y + h - ry; | 95 poses[8][1] = y + h - ry; |
94 | 96 |
95 poses[9][0] = x; | 97 poses[9][0] = x; |
96 poses[9][1] = y + ry; | 98 poses[9][1] = y + ry; |
97 poses[10][0] = x; | 99 poses[10][0] = x; |
98 poses[10][1] = y; | 100 poses[10][1] = y; |
99 poses[11][0] = x + rx; | 101 poses[11][0] = x + rx; |