Changeset 124 for abuse/trunk/src/gui.cpp
- Timestamp:
- Mar 18, 2008, 9:36:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/gui.cpp
r123 r124 23 23 { 24 24 x=X; y=Y; id=ID; 25 next=Next; 25 next=Next; 26 26 blist=cur_but=butts; 27 27 act=0; … … 39 39 int X1,Y1,X2,Y2; 40 40 for (ifield *b=blist;b;b=b->next) 41 { 41 { 42 42 b->area(X1,Y1,X2,Y2); 43 43 if (X1<x1) x1=X1; … … 60 60 if (cur_but==b) cur_but=blist; 61 61 return b; 62 } 62 } 63 63 ifield *x=b->unlink(id); 64 64 if (x) return x; … … 84 84 { 85 85 int x1,y1,x2,y2; 86 area(x1,y1,x2,y2); 87 86 area(x1,y1,x2,y2); 87 88 88 if (active!=act && activate_id!=-1 && active) 89 89 wm->push_event(new event(activate_id,NULL)); 90 90 91 91 if (up && !active) 92 92 cache.img(u)->put_image(screen,x1,y1); … … 100 100 wm->push_event(new event(activate_id,NULL)); 101 101 act=active; 102 102 103 103 if (active && key[0]) 104 104 {
Note: See TracChangeset
for help on using the changeset viewer.