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/profile.cpp

    r88 r106  
    5656
    5757 
    58   prof_win=eh->new_window(prop->getd("profile x",-1),
     58  prof_win=wm->new_window(prop->getd("profile x",-1),
    5959                          prop->getd("profile y",-1),
    6060                          20*console_font->width(),
     
    8181  if (prof_list) jfree(prof_list);
    8282  prof_list=NULL;
    83   if (prof_win) { eh->close_window(prof_win); prof_win=NULL; }
     83  if (prof_win) { wm->close_window(prof_win); prof_win=NULL; }
    8484}
    8585
     
    125125    prof_win->screen->bar(spliter-1-(int)(prof_list[i].total_time*time_scaler),dy+1,
    126126                          spliter-1,
    127                           dy+console_font->height()-1,eh->bright_color());
     127                          dy+console_font->height()-1,wm->bright_color());
    128128    dy+=console_font->height()+1;
    129129  }
Note: See TracChangeset for help on using the changeset viewer.