Changeset 11462


Ignore:
Timestamp:
Dec 5, 2010, 6:27:01 PM (11 years ago)
Author:
charles
Message:

(2.0x gtk) backport r11267 for #3585 "possible rendering issue in torrent_cell_renderer_get_size()"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/gtk/torrent-cell-renderer.c

    r10505 r11462  
    521521            *height = h;
    522522
    523         if( cell_area ) {
    524             if( x_offset ) *x_offset = 0;
    525             if( y_offset ) {
    526                 *y_offset = 0.5 * ( cell_area->height - ( h + ( 2 * cell->ypad ) ) );
    527                 *y_offset = MAX( *y_offset, 0 );
    528             }
    529         }
     523        if( x_offset )
     524            *x_offset = cell_area ? cell_area->x : 0;
     525         
     526        if( y_offset )
     527            *x_offset = cell_area ? (int)((cell_area->height - (cell->ypad*2 +h)) / 2.0) : 0;
    530528    }
    531529}
Note: See TracChangeset for help on using the changeset viewer.