From c7c07366e0a371cee154b5b12f6ddcaa58e21943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Wed, 5 Mar 2008 18:27:57 +0000 Subject: [PATCH] Tell if overlay is used or not. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24242 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mediaplayer/InfoWin.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/apps/mediaplayer/InfoWin.cpp b/src/apps/mediaplayer/InfoWin.cpp index 1971c0495c..0fb475d72a 100644 --- a/src/apps/mediaplayer/InfoWin.cpp +++ b/src/apps/mediaplayer/InfoWin.cpp @@ -87,7 +87,7 @@ InfoWin::InfoWin(BPoint leftTop, Controller* controller) BRect rect = Bounds(); // accomodate for big fonts - float div = max_c(2 * 32, be_plain_font->StringWidth("Container") + 5); + float div = max_c(2 * 32, be_plain_font->StringWidth("Display Mode") + 10); fInfoView = new InfoView(rect, "background", div); fInfoView->SetViewColor(ui_color(B_DOCUMENT_BACKGROUND_COLOR)); @@ -310,7 +310,7 @@ printf("InfoWin::Update(0x%08lx)\n", which); // statistics if ((which & INFO_STATS) && fController->HasFile()) { - fLabelsView->Insert("Duration\n\n"); + fLabelsView->Insert("Duration\n"); BString s; bigtime_t d = fController->Duration(); bigtime_t v; @@ -333,13 +333,22 @@ printf("InfoWin::Update(0x%08lx)\n", which); s << " h"; else s << " min"; - s << "\n\n"; + s << "\n"; fContentsView->Insert(s.String()); // TODO: demux/video/audio/... perfs (Kb/s) + + fLabelsView->Insert("Display Mode\n"); + if (fController->IsOverlayActive()) + fContentsView->Insert("Overlay\n"); + else + fContentsView->Insert("DrawBitmap\n"); + + fLabelsView->Insert("\n"); + fContentsView->Insert("\n"); } if (which & INFO_TRANSPORT) { - // what is "Transport"? + // Transport protocol info (file, http, rtsp, ...) } if (which & INFO_FILE) {