Changeset 4 for abuse/trunk/src/imlib/scroller.cpp
- Timestamp:
- Nov 6, 2005, 11:39:38 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/scroller.cpp
r2 r4 348 348 { 349 349 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; 351 351 if (vert) { xa=0; ya=30; yo=x+5; yo=y+5; } else { xa=30; ya=0; xo=x+5; yo=y+5; } 352 352 for (int i=newx,c=0;c<30 && i<100;i++,c++) … … 391 391 392 392 for (i=0;i<t;i++) 393 if ( strlen(List[i])>wid)393 if ((int)strlen(List[i])>wid) 394 394 wid=strlen(List[i]); 395 395 cur_sel=sx=start_yoffset; … … 426 426 int found=-1; 427 427 if (key_hist_total<20) 428 key_hist[ key_hist_total++]=ev.key;428 key_hist[(int)(key_hist_total++)]=ev.key; 429 429 430 430 for (int i=0;i<t && found==-1;i++) 431 431 { 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) 433 433 found=i; 434 434 } … … 480 480 int tw=(l+tex->width()-1)/tex->width(); 481 481 int th=(h+tex->height()-1)/tex->height(); 482 int dy=y ,dx;482 int dy=y; 483 483 for (int j=0;j<th;j++,dy+=tex->height()) 484 484 for (int i=0,dx=x;i<tw;i++,dx+=tex->width())
Note: See TracChangeset
for help on using the changeset viewer.