Changeset 106 for abuse/trunk/src/imlib/tools.cpp
- Timestamp:
- Mar 15, 2008, 12:55:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/tools.cpp
r56 r106 21 21 } 22 22 23 void tool_picker::remap(palette *pal, window_manager *wm,image *screen)23 void tool_picker::remap(palette *pal, image *screen) 24 24 { 25 25 delete map; 26 26 map=new filter(old_pal,pal); 27 draw_first(screen ,wm);27 draw_first(screen); 28 28 } 29 29 30 30 tool_picker::tool_picker(int X, int Y, int ID, 31 31 int show_h, visual_object **Icons, int *Ids, int total_ic, 32 palette *icon_palette, palette *pal, window_manager *wm,ifield *Next) :32 palette *icon_palette, palette *pal, ifield *Next) : 33 33 spicker(X,Y,ID,show_h,1,1,0,Next) 34 34 { … … 39 39 for (int i=0;i<total_ic;i++) 40 40 { 41 if (icons[i]->width( wm)>iw) iw=icons[i]->width(wm);42 if (icons[i]->height( wm)>ih) ih=icons[i]->height(wm);41 if (icons[i]->width()>iw) iw=icons[i]->width(); 42 if (icons[i]->height()>ih) ih=icons[i]->height(); 43 43 } 44 44 map=new filter(icon_palette,pal); … … 47 47 } 48 48 49 void tool_picker::draw_item( window_manager *wm,image *screen, int x, int y, int num, int active)49 void tool_picker::draw_item(image *screen, int x, int y, int num, int active) 50 50 { 51 51 if (!active) … … 53 53 else 54 54 screen->bar(x,y,x+iw-1,y+ih-1,wm->bright_color()); 55 icons[num]->draw(screen,x,y, wm,map);55 icons[num]->draw(screen,x,y,map); 56 56 } 57 57
Note: See TracChangeset
for help on using the changeset viewer.