gfx/cairo/win32-vertically-offset-glyph.patch

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 diff --git a/gfx/cairo/cairo/src/cairo-win32-surface.c b/gfx/cairo/cairo/src/cairo-win32-surface.c
     2 --- a/gfx/cairo/cairo/src/cairo-win32-surface.c
     3 +++ b/gfx/cairo/cairo/src/cairo-win32-surface.c
     4 @@ -1742,17 +1742,18 @@ _cairo_win32_surface_show_glyphs (void		
     6              cairo_matrix_transform_point(&device_to_logical,
     7                                           &next_user_x, &next_user_y);
     9              next_logical_x = _cairo_lround (next_user_x);
    10              next_logical_y = _cairo_lround (next_user_y);
    12              dxy_buf[j] = _cairo_lround (next_logical_x - logical_x);
    13 -            dxy_buf[j+1] = _cairo_lround (next_logical_y - logical_y);
    14 +            dxy_buf[j+1] = _cairo_lround (logical_y - next_logical_y);
    15 +                /* note that GDI coordinate system is inverted */
    17              logical_x = next_logical_x;
    18              logical_y = next_logical_y;
    19          }
    20      }
    22      /* Using glyph indices for a Type 1 font does not work on a
    23       * printer DC. The win32 printing surface will convert the the

mercurial