Ignore:
Timestamp:
Mar 15, 2008, 12:55:44 AM (11 years ago)
Author:
Sam Hocevar
Message:
  • Rename the "eh" variable to "wm" because it's a window manager, not an event handler.
  • No longer pass the window manager to functions, there's only one.

Inspired by Win32 Abuse changelog for January 28, 2001:

  • Starting work on singleton code; will get rid of all

references to an arbitrary window_manager* because
there's only going to be one, and it's not ever
going to change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/devsel.hpp

    r57 r106  
    1616  int th,last_sel,type,scale,wid,rev;
    1717  public :
    18   tile_picker(int X, int Y, int ID, int spec_type, window_manager *wm,
     18  tile_picker(int X, int Y, int ID, int spec_type,
    1919                 int scale, int scroll_h, int Wid, ifield *Next);
    20   virtual void handle_inside_event(event &ev, image *screen, window_manager *wm, input_manager *inm);
    21   virtual void scroll_event(int newx, image *screen, window_manager *wm);
     20  virtual void handle_inside_event(event &ev, image *screen, input_manager *inm);
     21  virtual void scroll_event(int newx, image *screen);
    2222  virtual char *read() { return (char *)this; }
    2323  int picw();
     
    2626  int get_current();
    2727  void set_current(int x);
    28   void recenter(image *screen, window_manager *wm);
     28  void recenter(image *screen);
    2929  void reverse() { rev=!rev; }
    3030} ;
Note: See TracChangeset for help on using the changeset viewer.