summaryrefslogtreecommitdiff
path: root/xfd.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2005-08-28 19:39:54 +0000
committerAdam Jackson <ajax@nwnk.net>2005-08-28 19:39:54 +0000
commitaafc1f6428ecdcb858e954ad7e5f866a07782851 (patch)
treeabd033764b633cac4478bcf64fe76e7dd2ff9324 /xfd.c
parent9e2944c39c197c7b70ac26f1e56beb9085769f63 (diff)
Bug #3424: Xft and high-index glyph fixes for xfd (James Cloos)XORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901
Diffstat (limited to 'xfd.c')
-rw-r--r--xfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfd.c b/xfd.c
index a21a0e3..6183eed 100644
--- a/xfd.c
+++ b/xfd.c
@@ -401,7 +401,7 @@ change_page(int page)
GetFontGridCellDimensions (fontGrid, &oldstart, &ncols, &nrows);
if (page) {
- Dimension start = (oldstart +
+ long start = (oldstart +
((long) ncols) * ((long) nrows) * ((long) page));
arg.value = (XtArgVal) start;
@@ -414,7 +414,7 @@ change_page(int page)
/* if not paging, then initialize it, else only do it actually changed */
if (!page || newstart != oldstart) {
- unsigned int row = (unsigned int) ((newstart >> 8) & 0xff);
+ unsigned int row = (unsigned int) ((newstart >> 8));
unsigned int col = (unsigned int) (newstart & 0xff);
XtSetArg (arg, XtNlabel, buf);