Tell if overlay is used or not.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24242 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -87,7 +87,7 @@ InfoWin::InfoWin(BPoint leftTop, Controller* controller)
|
|||||||
BRect rect = Bounds();
|
BRect rect = Bounds();
|
||||||
|
|
||||||
// accomodate for big fonts
|
// 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 = new InfoView(rect, "background", div);
|
||||||
fInfoView->SetViewColor(ui_color(B_DOCUMENT_BACKGROUND_COLOR));
|
fInfoView->SetViewColor(ui_color(B_DOCUMENT_BACKGROUND_COLOR));
|
||||||
@@ -310,7 +310,7 @@ printf("InfoWin::Update(0x%08lx)\n", which);
|
|||||||
|
|
||||||
// statistics
|
// statistics
|
||||||
if ((which & INFO_STATS) && fController->HasFile()) {
|
if ((which & INFO_STATS) && fController->HasFile()) {
|
||||||
fLabelsView->Insert("Duration\n\n");
|
fLabelsView->Insert("Duration\n");
|
||||||
BString s;
|
BString s;
|
||||||
bigtime_t d = fController->Duration();
|
bigtime_t d = fController->Duration();
|
||||||
bigtime_t v;
|
bigtime_t v;
|
||||||
@@ -333,13 +333,22 @@ printf("InfoWin::Update(0x%08lx)\n", which);
|
|||||||
s << " h";
|
s << " h";
|
||||||
else
|
else
|
||||||
s << " min";
|
s << " min";
|
||||||
s << "\n\n";
|
s << "\n";
|
||||||
fContentsView->Insert(s.String());
|
fContentsView->Insert(s.String());
|
||||||
// TODO: demux/video/audio/... perfs (Kb/s)
|
// 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) {
|
if (which & INFO_TRANSPORT) {
|
||||||
// what is "Transport"?
|
// Transport protocol info (file, http, rtsp, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (which & INFO_FILE) {
|
if (which & INFO_FILE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user