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

    r61 r106  
    10081008  }
    10091009
    1010   JCFont *fnt=eh->font();
     1010  JCFont *fnt=wm->font();
    10111011  if (local)
    10121012  {
     
    10391039{
    10401040  fade_out(8);
    1041   eh->set_mouse_position(0,0);
     1041  wm->set_mouse_position(0,0);
    10421042  screen->clear();
    10431043  image *im=cash.img(cash.reg("art/frame.spe","end_level_screen",SPEC_IMAGE,1));
    10441044  im->put_image(screen,0,0);
    10451045  int x1=im->width()+1,y1=0,y2=screen->height();
    1046   JCFont *fnt=eh->font();
     1046  JCFont *fnt=wm->font();
    10471047 
    10481048  view *v=player_list; int tp=0,i;
     
    10511051  int y=(y1+y2)/2-(tp+2)*fnt->height()/2,x=x1+10;
    10521052  char const *header_str = symbol_str("score_header");
    1053   fnt->put_string(screen,x,y,header_str,eh->bright_color());
     1053  fnt->put_string(screen,x,y,header_str,wm->bright_color());
    10541054  y+=fnt->height();
    10551055
    10561056  screen->wiget_bar(x,y+2,x+strlen(header_str)*fnt->width(),y+fnt->height()-3,
    1057                      eh->bright_color(),eh->medium_color(),eh->dark_color());
     1057                     wm->bright_color(),wm->medium_color(),wm->dark_color());
    10581058  y+=fnt->height();
    10591059  v=player_list;
     
    10751075  }
    10761076 
    1077   eh->flush_screen();
     1077  wm->flush_screen();
    10781078  milli_wait(4000);   // wait 4 seconds
    10791079
Note: See TracChangeset for help on using the changeset viewer.