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

    r88 r106  
    7575}
    7676
    77 console::console(window_manager *WM, JCFont *font, int width, int height, char const *Name)
    78 {
    79   wm=WM;
     77console::console(JCFont *font, int width, int height, char const *Name)
     78{
    8079  con_win=NULL;
    8180  w=width;
     
    122121      memset(screen+w*(h-1),' ',w);
    123122      redraw();
    124       eh->flush_screen();
     123      wm->flush_screen();
    125124    }
    126125  } else draw_cursor();   
     
    173172
    174173
    175 shell_term::shell_term(window_manager *WM, JCFont *font, int width, int height, char const *Name) :
    176   console(WM,font,width,height,Name)
     174shell_term::shell_term(JCFont *font, int width, int height, char const *Name) :
     175  console(font,width,height,Name)
    177176{
    178177  shcmd[0]=0;
     
    191190}
    192191
    193 int shell_term::handle_event(event &ev, window_manager *wm)
     192int shell_term::handle_event(event &ev)
    194193{
    195194  if (ev.window==con_win && con_win)
Note: See TracChangeset for help on using the changeset viewer.