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/imlib/visobj.cpp

    r56 r106  
    1010#include "config.h"
    1111
     12#include "input.hpp"
    1213#include "visobj.hpp"
    1314
    1415void image_visual::draw(image *screen, int x, int y,
    15                     window_manager *wm, filter *f)
     16                    filter *f)
    1617{
    1718  if (f)
     
    3031
    3132
    32 int string_visual::width(window_manager *wm)
     33int string_visual::width()
    3334{
    3435  if (w==-1)  // not calculated yet
     
    5152}
    5253
    53 int string_visual::height(window_manager *wm)
     54int string_visual::height()
    5455{
    55   if (w==-1) width(wm);
     56  if (w==-1) width();
    5657  return h;
    5758}
     
    7879}
    7980
    80 void string_visual::draw(image *screen, int x, int y,
    81                     window_manager *wm, filter *f)
     81void string_visual::draw(image *screen, int x, int y, filter *f)
    8282
    8383{
Note: See TracChangeset for help on using the changeset viewer.