- Timestamp:
- Nov 13, 2003, 4:41:12 PM (20 years ago)
- Location:
- ttyvaders/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ttyvaders/trunk/libee/conic.c
r160 r166 57 57 int d1 = b*b - (a*a*b) + (a*a/4); 58 58 59 while( 59 while(a*a*y - a*a/2 > b*b*(x+1)) 60 60 { 61 61 if(d1 < 0) … … 104 104 ellipsepoints(xo, yo, x, y, c); 105 105 106 while( 106 while(a*a*y - a*a/2 > b*b*(x+1)) 107 107 { 108 108 if(d1 < 0) … … 147 147 ellipsepoints(xo, yo, x, y, '-'); 148 148 149 while( 149 while(a*a*y - a*a/2 > b*b*(x+1)) 150 150 { 151 151 if(d1 < 0) -
ttyvaders/trunk/libee/line.c
r160 r166 162 162 s->x1 = 0; 163 163 } 164 else if( bits1 & (1<<1))164 else if(bits1 & (1<<1)) 165 165 { 166 166 int xmax = ee_get_width() - 1; … … 168 168 s->x1 = xmax; 169 169 } 170 else if( bits1 & (1<<2))170 else if(bits1 & (1<<2)) 171 171 { 172 172 s->x1 = s->x2 - (s->y2 - 0) * (s->x2 - s->x1) / (s->y2 - s->y1); 173 173 s->y1 = 0; 174 174 } 175 else if( bits1 & (1<<3))175 else if(bits1 & (1<<3)) 176 176 { 177 177 int ymax = ee_get_height() - 1; -
ttyvaders/trunk/src/box.c
r154 r166 29 29 box * create_box(game *g, int x, int y, int w, int h) 30 30 { 31 box *b = malloc(sizeof( box));31 box *b = malloc(sizeof(box)); 32 32 33 33 b->x = x;
Note: See TracChangeset
for help on using the changeset viewer.