X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fgui%2Fbeos%2FListViews.cpp;h=e339c6fa2f95a555883f051f86802cbfcf6887a1;hb=6ee1e193fd896ab9a4729fde14f009d9ce629815;hp=edbba9f1008aa291f5eb605ba2d19b2ee40b5523;hpb=d3fe7f28797d4dba65ffcdd60bf932e758a48a9e;p=vlc diff --git a/modules/gui/beos/ListViews.cpp b/modules/gui/beos/ListViews.cpp index edbba9f100..e339c6fa2f 100644 --- a/modules/gui/beos/ListViews.cpp +++ b/modules/gui/beos/ListViews.cpp @@ -23,7 +23,6 @@ #if 0 -#include #include #include @@ -250,12 +249,12 @@ DragSortableListView::InitiateDrag( BPoint point, int32 index, bool ) v->SetHighColor( 0, 0, 0, 255 ); v->StrokeRect( v->Bounds() ); v->Sync(); - + uint8 *bits = (uint8 *)dragBitmap->Bits(); int32 height = (int32)dragBitmap->Bounds().Height() + 1; int32 width = (int32)dragBitmap->Bounds().Width() + 1; int32 bpr = dragBitmap->BytesPerRow(); - + if (fade) { for ( int32 y = 0; y < height - ALPHA / 2; y++, bits += bpr ) { uint8 *line = bits + 3; @@ -370,7 +369,7 @@ DragSortableListView::MouseMoved(BPoint where, uint32 transit, const BMessage *m // offset where by half of item height BRect r( ItemFrame( 0 ) ); where.y += r.Height() / 2.0; - + int32 index = IndexOf( where ); if ( index < 0 ) index = CountItems(); @@ -728,7 +727,7 @@ PlaylistView::KeyDown( const char* bytes, int32 numBytes ) { if ( numBytes < 1 ) return; - + if ( ( bytes[0] == B_BACKSPACE ) || ( bytes[0] == B_DELETE ) ) { RemoveSelected(); @@ -845,7 +844,7 @@ PlaylistView::CopyItems( BList& items, int32 toIndex ) void* cloned = fVlcWrapper->PlaylistCloneItem( item ); if ( cloned && !clonedItems.AddItem( cloned ) ) free( cloned ); - + } // add cloned items at index int32 index = toIndex; @@ -1046,7 +1045,7 @@ PlaylistView::SortReverse() void PlaylistView::SortByPath() { - + } /***************************************************************************** @@ -1103,7 +1102,7 @@ PlaylistView::_SetPlayingIndex( BListItem* playingItem ) playlist_t * p_playlist; p_playlist = (playlist_t *) vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); - + if( !p_playlist ) { return;