summaryrefslogtreecommitdiff
path: root/src/plot/common.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-07-26 17:35:47 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-07-26 17:35:47 +0100
commitbabd30a2b471d1177895327fd555175ca04017a0 (patch)
tree883114261ca2067701726d46ae407eaf19593f66 /src/plot/common.c
parentcc6b21e5d3f36aae6340203f9a1998e7c4d382b6 (diff)
downloadlibnsfb-babd30a2b471d1177895327fd555175ca04017a0.tar.gz
libnsfb-babd30a2b471d1177895327fd555175ca04017a0.tar.bz2
Tiny simplification of freetype glyph renderer.
Diffstat (limited to 'src/plot/common.c')
-rw-r--r--src/plot/common.c11
1 files changed, 4 insertions, 7 deletions
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;