After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 348593 - better {set,get}Contrast documentation
better {set,get}Contrast documentation
Status: RESOLVED FIXED
Product: gnome-mag
Classification: Deprecated
Component: API
unspecified
Other All
: Normal enhancement
: ---
Assigned To: bill.haneman
bill.haneman
Depends on: 348629
Blocks:
 
 
Reported: 2006-07-25 01:00 UTC by Carlos Eduardo Rodrigues Diógenes
Modified: 2006-12-15 20:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Better documentation for {set,get}Contrast methods (1.29 KB, patch)
2006-07-25 01:03 UTC, Carlos Eduardo Rodrigues Diógenes
reviewed Details | Review
contrast documentation accordingly the new patch in bug #348629 (1.38 KB, patch)
2006-12-14 12:45 UTC, Carlos Eduardo Rodrigues Diógenes
accepted-commit_now Details | Review

Description Carlos Eduardo Rodrigues Diógenes 2006-07-25 01:00:41 UTC
The {set,get}Contrast methods in idl/GNOME_Magnifier.idl are with poor documentation, leaving their understanding difficult.
Comment 1 Carlos Eduardo Rodrigues Diógenes 2006-07-25 01:03:28 UTC
Created attachment 69542 [details] [review]
Better documentation for {set,get}Contrast methods

This try to explaim better what {set,get}Contrast methods does. I quick way to test them is using the test/control-client program like this: # ./control-client C 1 0 0
Where 1 0 0 are the Red, Green and Blue values.
Comment 2 bill.haneman 2006-07-25 12:15:51 UTC
Carlos, thanks for the clarification.  I still am a little unsure of the intended result, as this feature doesn't seem to work as advertised at the moment; 

setting control-client C 0.5 0.5 5.0 does not result in
R,G,B of 0.5,0.5,5.0 being set or returned by Magnifier_getContrast.
see bug #348629.
Comment 3 bill.haneman 2006-07-27 12:52:32 UTC
I see.  I have commented (in the other bug? or was it in email) about the fact that this method doesn't work as one expects, changing the contrast also changes the brightness a lot.  

I think this should be fixed before we fix the documentation.  But in any case the docs should indicate the valid ranges of the parameters if it's not obvious from the description, and should indicate what the expected effect on the R,G,B channels should be.  It would be enough, I think, to describe the actual algorithm for changing R,G,B based on the parameters.
Comment 4 Carlos Eduardo Rodrigues Diógenes 2006-12-14 12:45:27 UTC
Created attachment 78357 [details] [review]
contrast documentation accordingly the new patch in bug #348629
Comment 5 Carlos Eduardo Rodrigues Diógenes 2006-12-15 20:34:18 UTC
Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.