fixed build errors.

This commit is contained in:
spider 1998-06-25 04:59:17 +00:00
parent ec4811f612
commit edc069a0e5
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@
#include "nsIRenderingContext.h"
#include "X11/Xlib.h"
#include "X11/Intrinsic.h"
/* nsDrawingSurface is actually the following struct */
typedef struct nsDrawingSurfaceUnix {

View File

@ -504,7 +504,7 @@ void nsRenderingContextUnix :: SetFont(const nsFont& aFont)
if (mFontMetrics)
{
// mCurrFontHandle = ::XLoadFont(mRenderingSurface->display, (char *)mFontMetrics->GetFontHandle());
mCurrFontHandle = (Font)mFontMetrics->GetFontHandle());
mCurrFontHandle = (Font)mFontMetrics->GetFontHandle();
::XSetFont(mRenderingSurface->display,
mRenderingSurface->gc,