Ignore:
Timestamp:
Mar 18, 2008, 9:36:56 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of ugly tabs and trailing spaces everywhere.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/visobj.cpp

    r106 r124  
    1313#include "visobj.hpp"
    1414
    15 void image_visual::draw(image *screen, int x, int y, 
    16                     filter *f)
    17 { 
     15void image_visual::draw(image *screen, int x, int y,
     16            filter *f)
     17{
    1818  if (f)
    1919    f->put_image(screen,im,x,y,1);
    2020  else
    21     im->put_image(screen,x,y); 
     21    im->put_image(screen,x,y);
    2222}
    2323
     
    2727  st=strcpy((char *)jmalloc(strlen(string)+1,"string visual"),string);
    2828  color=Color;
    29   w=-1; 
     29  w=-1;
    3030}
    3131
     
    4242      if (*info=='\n')
    4343      {
    44         h+=fh+1;
    45         w=1;
     44    h+=fh+1;
     45    w=1;
    4646      }
    47       else w+=fw;     
     47      else w+=fw;
    4848    }
    4949    w=maxw;
     
    5353
    5454int string_visual::height()
    55 { 
     55{
    5656  if (w==-1) width();
    5757  return h;
     
    5959
    6060
    61 static void put_para(image *screen, char *st, int dx, int dy, 
    62                      int xspace, int yspace, JCFont *font, int color)
     61static void put_para(image *screen, char *st, int dx, int dy,
     62             int xspace, int yspace, JCFont *font, int color)
    6363{
    6464  int ox=dx;
     
    8181void string_visual::draw(image *screen, int x, int y, filter *f)
    8282
    83 { 
     83{
    8484  put_para(screen,st,x+1,y+1,wm->font()->width(),wm->font()->height(),
    85            wm->font(),f ? f->get_mapping(color) : color);
     85       wm->font(),f ? f->get_mapping(color) : color);
    8686}
    8787
Note: See TracChangeset for help on using the changeset viewer.