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

    r56 r106  
    5555void make_help_page(int page, image *s)
    5656{
    57   int x=0,y=0,fw=eh->font()->width(),fh=eh->font()->height(),ya;
     57  int x=0,y=0,fw=wm->font()->width(),fh=wm->font()->height(),ya;
    5858  char *h,*ho,imname[30],*inp;
    5959  h=ho=get_page(page);
     
    6464  if (fp->open_failure())
    6565  {
    66     eh->font()->put_string(s,10,10,"Help file missing!");
     66    wm->font()->put_string(s,10,10,"Help file missing!");
    6767    return ;
    6868   
     
    8282        if (*h=='@')
    8383        {         
    84           eh->font()->put_char(s,x,y,*h);
     84          wm->font()->put_char(s,x,y,*h);
    8585          x+=fw;         
    8686          h++;   
     
    122122          if (!sd.find(imname))
    123123          {         
    124             eh->font()->put_string(s,0,yres-10,"Missing image!");
     124            wm->font()->put_string(s,0,yres-10,"Missing image!");
    125125            delete fp;
    126126            jfree(ho);     
     
    160160      else
    161161      {
    162         eh->font()->put_char(s,x,y,*h);
     162        wm->font()->put_char(s,x,y,*h);
    163163        x+=fw;   
    164164        h++;   
     
    198198    screen->scroll(0,0,xres,yres,0,scroll_step);
    199199    h->put_part(screen,0,helpy,0,0,xres,-helpy+scroll_step);
    200     eh->flush_screen();   
     200    wm->flush_screen();   
    201201  }
    202202  delete h;       
Note: See TracChangeset for help on using the changeset viewer.