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

    r56 r106  
    125125       *text_symbol=make_find_symbol("text");
    126126     
    127   JCFont *font=eh->font();
     127  JCFont *font=wm->font();
    128128
    129129  do
     
    156156                    the_game->first_view->cy2-tbottom,text,font,
    157157                    white_light+32*256,
    158                     eh->bright_color()
     158                    wm->bright_color()
    159159                   
    160160                    ))
     
    174174    } else if (arg==text_symbol) done=1;
    175175           
    176     eh->flush_screen();   
    177     while (eh->event_waiting())
     176    wm->flush_screen();   
     177    while (wm->event_waiting())
    178178    {   
    179179      event ev;     
    180       eh->get_event(ev);
     180      wm->get_event(ev);
    181181      if (ev.type==EV_KEY)
    182182      {
Note: See TracChangeset for help on using the changeset viewer.