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 549642 - add aspect ratio estimates to resolution drop-down menu
add aspect ratio estimates to resolution drop-down menu
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Display
2.23.x
Other All
: Normal enhancement
: ---
Assigned To: Federico Mena Quintero
Control-Center Maintainers
: 603237 (view as bug list)
Depends on:
Blocks: randr-tracker
 
 
Reported: 2008-08-27 21:49 UTC by Kees Cook
Modified: 2010-11-09 13:03 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
add aspect ratio estimate to resolution drop-down menu (2.27 KB, patch)
2008-08-27 21:50 UTC, Kees Cook
needs-work Details | Review
add aspect ratio estimate to resolution drop-down menu (2.66 KB, patch)
2008-08-28 17:45 UTC, Kees Cook
needs-work Details | Review

Description Kees Cook 2008-08-27 21:49:13 UTC
When trying to find resolutions that will not look distorted on a given display, it is handy to pick one with the same aspect ratio as the currently selected display.  Since computers do math faster than me, this patch adds the aspect ratio to the drop-down menus.
Comment 1 Kees Cook 2008-08-27 21:50:07 UTC
Created attachment 117487 [details] [review]
add aspect ratio estimate to resolution drop-down menu
Comment 2 Priit Laes (IRC: plaes) 2008-08-28 17:25:10 UTC
(In reply to comment #1)
> Created an attachment (id=117487) [edit]
> add aspect ratio estimate to resolution drop-down menu
> 

Could you also add translator comment to _("%d x %d (%s)"), width, height, aspect)); thing ?:)
Comment 3 Jens Granseuer 2008-08-28 17:32:15 UTC
... and not use C++ style comments while we're at it.
Comment 4 Kees Cook 2008-08-28 17:45:19 UTC
Created attachment 117539 [details] [review]
add aspect ratio estimate to resolution drop-down menu

Sure thing; how does this look?  I tried to follow the commenting style shown at http://live.gnome.org/TranslationProject/DevGuidelines/Use%20comments
Comment 5 Kees Cook 2008-09-08 18:47:52 UTC
Can someone please commit this?  Is there anything else missing?
Comment 6 Priit Laes (IRC: plaes) 2008-09-09 05:02:40 UTC
(In reply to comment #5)
> Can someone please commit this?  Is there anything else missing?
> 

String freeze/UI freeze/Feature freeze? :)
Comment 7 Federico Mena Quintero 2009-02-26 02:11:02 UTC
I really like the idea of showing aspect ratios.  But do we need that "truncate the quotient and switch" method?  Can't we just take the width/height fraction, reduce it to the GCD of both values, and just use the result for the aspect ratio?
Comment 8 Kees Cook 2009-03-03 00:43:18 UTC
I don't think so.  I think it's important to identify aspect ratios into specific "buckets", since many ratios are close, but not exactly, the expected ratio.  Basically, we need to handle a certain level of rounding (and forcing), which I think is best handled with the existing switch methodology.
Comment 9 Jens Granseuer 2009-11-29 11:21:14 UTC
*** Bug 603237 has been marked as a duplicate of this bug. ***