Commit 21a59c10 authored by Tom Callaway's avatar Tom Callaway Committed by Jeremy Huddleston

compiler noise cleanups related to subpixel LCD support

Reviewed-by: Jeremy Huddleston's avatarJeremy Huddleston <jeremyhu@apple.com>
parent 6f1d7bcd
...@@ -358,7 +358,7 @@ XftFontLoadGlyphs (Display *dpy, ...@@ -358,7 +358,7 @@ XftFontLoadGlyphs (Display *dpy,
unsigned char bufLocal[4096]; unsigned char bufLocal[4096];
unsigned char *bufBitmap = bufLocal; unsigned char *bufBitmap = bufLocal;
int bufSize = sizeof (bufLocal); int bufSize = sizeof (bufLocal);
int size, pitch; int size;
int width; int width;
int height; int height;
int left, right, top, bottom; int left, right, top, bottom;
...@@ -572,7 +572,6 @@ XftFontLoadGlyphs (Display *dpy, ...@@ -572,7 +572,6 @@ XftFontLoadGlyphs (Display *dpy,
width = ftbit->width; width = ftbit->width;
height = ftbit->rows; height = ftbit->rows;
pitch = (width+3) & ~3;
if (XftDebug() & XFT_DBG_GLYPH) if (XftDebug() & XFT_DBG_GLYPH)
{ {
...@@ -674,12 +673,9 @@ XftFontLoadGlyphs (Display *dpy, ...@@ -674,12 +673,9 @@ XftFontLoadGlyphs (Display *dpy,
/* swap bits in each byte */ /* swap bits in each byte */
if (BitmapBitOrder (dpy) != MSBFirst) if (BitmapBitOrder (dpy) != MSBFirst)
{ {
unsigned char *line; unsigned char *line = (unsigned char*)bufBitmap;
unsigned char c; int i = size;
int i;
line = (unsigned char *) bufBitmap;
i = size;
while (i--) while (i--)
{ {
int c = *line; int c = *line;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment