* 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
This commit is contained in:
Axel Dörfler
2006-02-07 13:14:19 +00:00
parent c70cd57756
commit a932a97b52
2 changed files with 10 additions and 3 deletions
+9 -2
View File
@@ -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);
+1 -1
View File
@@ -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