* 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:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user