"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/IconList.cpp" between
xfe-1.43.tar.gz and xfe-1.43.1.tar.gz

About: Xfe (X File Explorer) is a file manager and browser (using the FOX toolkit).

IconList.cpp  (xfe-1.43):IconList.cpp  (xfe-1.43.1)
skipping to change at line 2481 skipping to change at line 2481
FXASSERT(current < items.no()); FXASSERT(current < items.no());
items[current]->setFocus(false); items[current]->setFocus(false);
updateItem(current); updateItem(current);
} }
return(1); return(1);
} }
// Draw item list // Draw item list
long IconList::onPaint(FXObject*, FXSelector, void* ptr) long IconList::onPaint(FXObject*, FXSelector, void* ptr)
{ {
// Don't draw if item height hasn't been computed
if (itemHeight == ITEM_HEIGHT)
{
return (0);
}
register int rlo, rhi, clo, chi, yy, xx; register int rlo, rhi, clo, chi, yy, xx;
register int x, y, r, c, index; register int x, y, r, c, index;
FXEvent* event = (FXEvent*)ptr; FXEvent* event = (FXEvent*)ptr;
FXDCWindow dc(this, event); FXDCWindow dc(this, event);
// Only draw the rectangle background if item height hasn't been computed
yet
// This avoids an ugly transient drawing on older hardware
if (itemHeight == ITEM_HEIGHT)
{
dc.setForeground(backColor);
dc.fillRectangle(event->rect.x, event->rect.y, event->rect.w, event->rec
t.h);
return (0);
}
// Set font // Set font
dc.setFont(font); dc.setFont(font);
// Icon mode // Icon mode
if (options&(_ICONLIST_BIG_ICONS|_ICONLIST_MINI_ICONS)) if (options&(_ICONLIST_BIG_ICONS|_ICONLIST_MINI_ICONS))
{ {
// Exposed rows // Exposed rows
rlo = (event->rect.y-pos_y)/itemHeight; rlo = (event->rect.y-pos_y)/itemHeight;
rhi = (event->rect.y+event->rect.h-pos_y)/itemHeight; rhi = (event->rect.y+event->rect.h-pos_y)/itemHeight;
if (rlo < 0) if (rlo < 0)
 End of changes. 2 change blocks. 
6 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)