Ignore:
Timestamp:
Nov 6, 2005, 11:39:38 AM (18 years ago)
Author:
Sam Hocevar
Message:
  • debian patches
File:
1 edited

Legend:

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

    r2 r4  
    348348{
    349349  screen->bar(x,y,x+l-1,y+h-1,wm->black());
    350   int xa,ya,xo,yo;
     350  int xa,ya,xo=0,yo;
    351351  if (vert) { xa=0; ya=30; yo=x+5; yo=y+5; } else { xa=30; ya=0; xo=x+5; yo=y+5; }
    352352  for (int i=newx,c=0;c<30 && i<100;i++,c++)
     
    391391
    392392  for (i=0;i<t;i++)
    393     if (strlen(List[i])>wid)
     393    if ((int)strlen(List[i])>wid)
    394394      wid=strlen(List[i]);
    395395  cur_sel=sx=start_yoffset;
     
    426426    int found=-1;
    427427    if (key_hist_total<20)
    428       key_hist[key_hist_total++]=ev.key;
     428      key_hist[(int)(key_hist_total++)]=ev.key;
    429429
    430430    for (int i=0;i<t && found==-1;i++)
    431431    {
    432       if (strlen(lis[i].name)>=key_hist_total && memcmp(lis[i].name,key_hist,key_hist_total)==0)
     432      if ((int)strlen(lis[i].name)>=key_hist_total && memcmp(lis[i].name,key_hist,key_hist_total)==0)
    433433        found=i;
    434434    }
     
    480480    int tw=(l+tex->width()-1)/tex->width();
    481481    int th=(h+tex->height()-1)/tex->height();
    482     int dy=y,dx;
     482    int dy=y;
    483483    for (int j=0;j<th;j++,dy+=tex->height())
    484484      for (int i=0,dx=x;i<tw;i++,dx+=tex->width())     
Note: See TracChangeset for help on using the changeset viewer.