Fixing build on gtk+ >= 1.2.7. r=pavlov, sr=blizzard.

This commit is contained in:
bryner%uiuc.edu 2001-03-07 01:31:15 +00:00
Родитель 3806f206fa
Коммит 1a0ca6e4ea
2 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -686,8 +686,7 @@ NS_IMETHODIMP nsRenderingContextGTK::SetLineStyle(nsLineStyle aLineStyle)
case nsLineStyle_kDashed:
{
mLineStyle = GDK_LINE_ON_OFF_DASH;
static char dashed[2] = {4,4};
mDashList = dashed;
mDashList[0] = mDashList[1] = 4;
mDashes = 2;
/* ::gdk_gc_set_dashes(mSurface->GetGC(),
@ -698,9 +697,8 @@ NS_IMETHODIMP nsRenderingContextGTK::SetLineStyle(nsLineStyle aLineStyle)
case nsLineStyle_kDotted:
{
mDashList[0] = mDashList[1] = 1;
mLineStyle = GDK_LINE_ON_OFF_DASH;
static char dotted[2] = {1,1};
mDashList = dotted;
mDashes = 2;
/* ::gdk_gc_set_dashes(mSurface->GetGC(),

Просмотреть файл

@ -242,7 +242,7 @@ private:
GdkGC *mGC;
GdkFunction mFunction;
GdkLineStyle mLineStyle;
gchar *mDashList;
gint8 mDashList[2];
gint mDashes;
nscolor mCurrentColor;
nsFontGTK *mCurrentFont;