summaryrefslogtreecommitdiffstats
path: root/src/bltGrMisc.C
diff options
context:
space:
mode:
authorjoye <joye>2013-12-20 18:17:22 (GMT)
committerjoye <joye>2013-12-20 18:17:22 (GMT)
commit58687ea778e2bd2dc7c7277650d1c954302c8bc7 (patch)
treef1be653e8f16973c6b867a07102a4928bc19025c /src/bltGrMisc.C
parent19c42554ae6c0f32542eab4431a808fdb37e2498 (diff)
downloadblt-58687ea778e2bd2dc7c7277650d1c954302c8bc7.zip
blt-58687ea778e2bd2dc7c7277650d1c954302c8bc7.tar.gz
blt-58687ea778e2bd2dc7c7277650d1c954302c8bc7.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltGrMisc.C')
-rw-r--r--src/bltGrMisc.C31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/bltGrMisc.C b/src/bltGrMisc.C
index e8e8733..c8a5ad4 100644
--- a/src/bltGrMisc.C
+++ b/src/bltGrMisc.C
@@ -654,35 +654,6 @@ Blt_UpdateScrollbar(
}
-/* -------------------------------------------------------------------------- */
-/*
- *---------------------------------------------------------------------------
- *
- * Blt_GetPrivateGCFromDrawable --
- *
- * Like Tk_GetGC, but doesn't share the GC with any other widget. This
- * is needed because the certain GC parameters (like dashes) can not be
- * set via XCreateGC, therefore there is no way for Tk's hashing
- * mechanism to recognize that two such GCs differ.
- *
- * Results:
- * A new GC is returned.
- *
- *---------------------------------------------------------------------------
- */
-GC
-Blt_GetPrivateGCFromDrawable(
- Display *display,
- Drawable drawable,
- unsigned long gcMask,
- XGCValues *valuePtr)
-{
- GC newGC;
-
- newGC = XCreateGC(display, drawable, gcMask, valuePtr);
- return newGC;
-}
-
/*
*---------------------------------------------------------------------------
*
@@ -728,7 +699,7 @@ Blt_GetPrivateGC(
Tk_Colormap(tkwin), Tk_Visual(tkwin));
}
}
- gc = Blt_GetPrivateGCFromDrawable(display, drawable, gcMask, valuePtr);
+ gc = XCreateGC(display, drawable, gcMask, valuePtr);
if (pixmap != None) {
Tk_FreePixmap(display, pixmap);
}