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

    r56 r106  
    246246    {
    247247      if ((current_level->tick_counter()&4)==0)
    248         eh->set_mouse_shape(cash.img(c_mouse1)->copy(),4,4);
    249       else eh->set_mouse_shape(cash.img(c_mouse2)->copy(),4,4);   
     248        wm->set_mouse_shape(cash.img(c_mouse1)->copy(),4,4);
     249      else wm->set_mouse_shape(cash.img(c_mouse2)->copy(),4,4);   
    250250      changed_cursor=1;
    251251    } else if (changed_cursor)
    252252    {
    253253      if (!(dev&EDIT_MODE))
    254         eh->set_mouse_shape(cash.img(c_target)->copy(),8,8);
     254        wm->set_mouse_shape(cash.img(c_target)->copy(),8,8);
    255255      else
    256         eh->set_mouse_shape(cash.img(c_normal)->copy(),1,1);
     256        wm->set_mouse_shape(cash.img(c_normal)->copy(),1,1);
    257257      changed_cursor=0;     
    258258    }
Note: See TracChangeset for help on using the changeset viewer.