[Sugar-devel] Browse scaling for XO display
Simon Schampijer
simon at schampijer.de
Thu Nov 4 13:46:01 EDT 2010
On 11/04/2010 06:14 PM, Marco Pesenti Gritti wrote:
> On Thu, Nov 4, 2010 at 5:00 PM, Marco Pesenti Gritti<marco at marcopg.org> wrote:
>> On Thu, Nov 4, 2010 at 4:41 PM, Simon Schampijer<simon at schampijer.de> wrote:
>>> http://git.sugarlabs.org/projects/hulahop/repos/mainline/blobs/master/python/__init__.py#line96
>>>
>>> We still do set the DPI in hulahop.
>>>
>>> Slightly OT:
>>> However I think some pages display rather badly on the XO. For example the
>>> links on the top left on the google landing page are rather small and blurry
>>> (not when in b/w mode). In the last days I tried to figure if we can improve
>>> there but I did not find a good solution yet.
>>
>> We used to have a xulrunner patch to go with this. I forget the exact
>> details, but it was XO specific so it might have gone lost (there is a
>> discussion somewhere on b.m.o about why it was necessary).
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=374775#c5
>
> Marco
>
Thanks Marco! I just checked our old rpms
(http://koji.fedoraproject.org/koji/buildinfo?buildID=65584) and the
patch below seem to match the discussion in the bug you posted. Will
check now what the xulrunner F11 code looks like...
Regards,
Simon
Index: gfx/src/thebes/nsThebesDeviceContext.cpp
===================================================================
RCS file: /cvsroot/mozilla/gfx/src/thebes/nsThebesDeviceContext.cpp,v
retrieving revision 1.54
diff -u -r1.54 nsThebesDeviceContext.cpp
--- gfx/src/thebes/nsThebesDeviceContext.cpp 19 Mar 2007 23:16:15 -0000 1.54
+++ gfx/src/thebes/nsThebesDeviceContext.cpp 22 Mar 2007 15:10:19 -0000
@@ -228,6 +228,7 @@
NS_ASSERTION(dpi != -1, "no dpi set");
+ dotsArePixels = PR_FALSE;
if (dotsArePixels) {
// First figure out the closest multiple of 96, which is the
number of
// dev pixels per CSS pixel. Then, divide that into
AppUnitsPerCSSPixel()
More information about the Sugar-devel
mailing list