-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-l opacity
does not work as documented
#281
Comments
I can't really find any documentation on If that's the case, then the bug I think is in the source code. Not the documentation. |
This will be hard for me to fix because I don't use a compositor. If you change that line to the following: unsigned long opacity = opt.lineOpacity * (0xFFFFFFFFu / 255); does that work as expected? If my understanding of |
-l opacity
-l opacity
does not work as documented
current code treats opacity as [0, 100] even though the manpage documents it as being [0, 255]. Fixes: resurrecting-open-source-projects#281
The opacity values for the 'edge' selection mode is between 10% and 100%
|
It was: const int lineOpacity = optionsParseRequireRange(opt.lineOpacity,
SELECTION_EDGE_OPACITY_MIN, SELECTION_OPACITY_MAX); The |
@daltomi What do you think should be done now?
|
El Fri, 26 May 2023 02:12:24 -0700
NRK ***@***.***> escribió:
1. Change the code back to using [10, 100] for `edge` and fix the manpage.
2. Change the code to use [0, 255] as documented in the manpage.
Yes, I also agree with option 2, TIA.
|
current code treats opacity as [0, 100] even though the manpage documents it as being [0, 255]. Fixes: #281
According to the man page, running a command like
scrot -s -l width=8,color="#ff79c6",opacity=255,mode=edge
should result in an opaque pink border, and should be not transparent at all.Instead,
opacity=255
is slightly see through, butopacity=100
is completely opaque.I'm not familiar with C and might be misunderstanding this line, but it looks like this isn't a bug, just the documentation being wrong.
scrot/src/selection_edge.c
Line 79 in 5ef8a82
The text was updated successfully, but these errors were encountered: