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

    r56 r106  
    153153  if (automap_window)
    154154  {   
    155     eh->close_window(automap_window);
     155    wm->close_window(automap_window);
    156156    automap_window=NULL;
    157157  }
     
    161161    old_dy=-1000;
    162162
    163     automap_window=eh->new_window(0,0,w*AUTOTILE_WIDTH,h*AUTOTILE_HEIGHT);
    164     automap_window->screen->bar(17,1,17+8*6+3,6,eh->medium_color());   
    165     eh->font()->put_string(automap_window->screen,20,2,"AUTOMAP");
     163    automap_window=wm->new_window(0,0,w*AUTOTILE_WIDTH,h*AUTOTILE_HEIGHT);
     164    automap_window->screen->bar(17,1,17+8*6+3,6,wm->medium_color());   
     165    wm->font()->put_string(automap_window->screen,20,2,"AUTOMAP");
    166166    draw();   
    167167  } 
     
    198198        break; 
    199199      case EV_CLOSE_WINDOW :
    200         eh->close_window(automap_window);
     200        wm->close_window(automap_window);
    201201        automap_window=NULL;
    202202        break;               
Note: See TracChangeset for help on using the changeset viewer.