Changeset 166 for ttyvaders/trunk/libee/line.c
- Timestamp:
- Nov 13, 2003, 4:41:12 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.