From a932a97b525655cad82a123eebc3542d0372d27f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 7 Feb 2006 13:14:19 +0000 Subject: [PATCH] * Mabye I should do better testing of what I "fix"; absolute paths didn't work anymore from the command line all of a sudden... * Made the caption background slightly less translucent to allow the text to be read even with very checkered images. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16280 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageApp.cpp | 11 +++++++++-- src/apps/showimage/ShowImageView.cpp | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/apps/showimage/ShowImageApp.cpp b/src/apps/showimage/ShowImageApp.cpp index e5919b62f3..54f50384bb 100644 --- a/src/apps/showimage/ShowImageApp.cpp +++ b/src/apps/showimage/ShowImageApp.cpp @@ -105,8 +105,15 @@ ShowImageApp::ArgvReceived(int32 argc, char **argv) cwd = ""; for (int32 i = 1; i < argc; i++) { - BPath path(cwd); - path.Append(argv[i]); + BPath path; + if (argv[i][0] == '/') { + // absolute path + path.SetTo(argv[i]); + } else { + // relative path + path.SetTo(cwd); + path.Append(argv[i]); + } entry_ref ref; status_t err = get_ref_for_path(path.Path(), &ref); diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index a82394dd94..0075ea3c13 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -871,7 +871,7 @@ ShowImageView::DrawCaption() // draw background SetDrawingMode(B_OP_ALPHA); - SetHighColor(255, 255, 255, 128); + SetHighColor(255, 255, 255, 160); FillRect(rect); // draw text