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

    r92 r106  
    927927      return ret;
    928928    } break;
    929     case 51 :   return new_lisp_pointer(eh->font()); break;
     929    case 51 :   return new_lisp_pointer(wm->font()); break;
    930930    case 52 :
    931931    {
     
    12971297      return 1;
    12981298    } break;
    1299     case 93 : return eh->dark_color(); break;
    1300     case 94 : return eh->medium_color(); break;
    1301     case 95 : return eh->bright_color(); break;
     1299    case 93 : return wm->dark_color(); break;
     1300    case 94 : return wm->medium_color(); break;
     1301    case 95 : return wm->bright_color(); break;
    13021302
    13031303    case 99 : current_object->remove_object((game_object *)lpointer_value(CAR(args))); return 1; break;
     
    21842184      c_target=id;
    21852185      if (screen)
    2186         eh->set_mouse_shape(cash.img(c_target)->copy(),x,y);
     2186        wm->set_mouse_shape(cash.img(c_target)->copy(),x,y);
    21872187    } break;
    21882188    case 276 :
Note: See TracChangeset for help on using the changeset viewer.