Gitweb links:

...log 
http://git.netsurf-browser.org/libnsfb.git/shortlog/babd30a2b471d1177895327fd555175ca04017a0
...commit 
http://git.netsurf-browser.org/libnsfb.git/commit/babd30a2b471d1177895327fd555175ca04017a0
...tree 
http://git.netsurf-browser.org/libnsfb.git/tree/babd30a2b471d1177895327fd555175ca04017a0

The branch, master has been updated
       via  babd30a2b471d1177895327fd555175ca04017a0 (commit)
       via  cc6b21e5d3f36aae6340203f9a1998e7c4d382b6 (commit)
      from  3526f1b2ccbb0fb8d2bb1fc344294f28f47e2222 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/libnsfb.git/commitdiff/babd30a2b471d1177895327fd555175ca04017a0
commit babd30a2b471d1177895327fd555175ca04017a0
Author: Michael Drake <t...@netsurf-browser.org>
Commit: Michael Drake <t...@netsurf-browser.org>

    Tiny simplification of freetype glyph renderer.

diff --git a/src/plot/common.c b/src/plot/common.c
index 2b8a939..5a83942 100644
--- a/src/plot/common.c
+++ b/src/plot/common.c
@@ -196,17 +196,14 @@ glyph8(nsfb_t *nsfb,
         int xoff, yoff; /* x and y offset into image */
         int x = loc->x0;
         int y = loc->y0;
-        int width = loc->x1 - loc->x0;
-        int height = loc->y1 - loc->y0;
+        int width;
+        int height;
 
         if (!nsfb_plot_clip_ctx(nsfb, loc))
                 return true;
 
-        if (height > (loc->y1 - loc->y0))
-                height = (loc->y1 - loc->y0);
-
-        if (width > (loc->x1 - loc->x0))
-                width = (loc->x1 - loc->x0);
+        height = (loc->y1 - loc->y0);
+        width = (loc->x1 - loc->x0);
 
         xoff = loc->x0 - x;
         yoff = loc->y0 - y;


commitdiff 
http://git.netsurf-browser.org/libnsfb.git/commitdiff/cc6b21e5d3f36aae6340203f9a1998e7c4d382b6
commit cc6b21e5d3f36aae6340203f9a1998e7c4d382b6
Author: Michael Drake <t...@netsurf-browser.org>
Commit: Michael Drake <t...@netsurf-browser.org>

    Don't add top clipping to bottom clipping.  Fixes internal font rendering.

diff --git a/src/plot/common.c b/src/plot/common.c
index 5675ad6..2b8a939 100644
--- a/src/plot/common.c
+++ b/src/plot/common.c
@@ -143,19 +143,16 @@ glyph1(nsfb_t *nsfb,
         int xoff, yoff; /* x and y offset into image */
         int x = loc->x0;
         int y = loc->y0;
-        int width = loc->x1 - loc->x0;
-        int height = loc->y1 - loc->y0;
+        int width;
+        int height;
         const uint8_t *fntd;
         uint8_t row;
 
         if (!nsfb_plot_clip_ctx(nsfb, loc))
                 return true;
 
-        if (height > (loc->y1 - loc->y0))
-                height = (loc->y1 - loc->y0);
-
-        if (width > (loc->x1 - loc->x0))
-                width = (loc->x1 - loc->x0);
+        height = loc->y1 - y;
+        width = loc->x1 - x;
 
         xoff = loc->x0 - x;
         yoff = loc->y0 - y;


-----------------------------------------------------------------------

Summary of changes:
 src/plot/common.c |   22 ++++++++--------------
 1 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/src/plot/common.c b/src/plot/common.c
index 5675ad6..5a83942 100644
--- a/src/plot/common.c
+++ b/src/plot/common.c
@@ -143,19 +143,16 @@ glyph1(nsfb_t *nsfb,
         int xoff, yoff; /* x and y offset into image */
         int x = loc->x0;
         int y = loc->y0;
-        int width = loc->x1 - loc->x0;
-        int height = loc->y1 - loc->y0;
+        int width;
+        int height;
         const uint8_t *fntd;
         uint8_t row;
 
         if (!nsfb_plot_clip_ctx(nsfb, loc))
                 return true;
 
-        if (height > (loc->y1 - loc->y0))
-                height = (loc->y1 - loc->y0);
-
-        if (width > (loc->x1 - loc->x0))
-                width = (loc->x1 - loc->x0);
+        height = loc->y1 - y;
+        width = loc->x1 - x;
 
         xoff = loc->x0 - x;
         yoff = loc->y0 - y;
@@ -199,17 +196,14 @@ glyph8(nsfb_t *nsfb,
         int xoff, yoff; /* x and y offset into image */
         int x = loc->x0;
         int y = loc->y0;
-        int width = loc->x1 - loc->x0;
-        int height = loc->y1 - loc->y0;
+        int width;
+        int height;
 
         if (!nsfb_plot_clip_ctx(nsfb, loc))
                 return true;
 
-        if (height > (loc->y1 - loc->y0))
-                height = (loc->y1 - loc->y0);
-
-        if (width > (loc->x1 - loc->x0))
-                width = (loc->x1 - loc->x0);
+        height = (loc->y1 - loc->y0);
+        width = (loc->x1 - loc->x0);
 
         xoff = loc->x0 - x;
         yoff = loc->y0 - y;


-- 
NetSurf Framebuffer library

_______________________________________________
netsurf-commits mailing list
netsurf-commits@netsurf-browser.org
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to