summaryrefslogtreecommitdiffstats
path: root/src/bltGrText.C
diff options
context:
space:
mode:
authorjoye <joye>2013-12-16 19:15:43 (GMT)
committerjoye <joye>2013-12-16 19:15:43 (GMT)
commite012cfd614d2cc3aab44d68005a691bfcbf44219 (patch)
treeb9648b0ef0cd3565efaca2dc91bddf8aed634785 /src/bltGrText.C
parent3ee30cb5a0671beb2eb840ffe7a37ba721b2d15c (diff)
downloadblt-e012cfd614d2cc3aab44d68005a691bfcbf44219.zip
blt-e012cfd614d2cc3aab44d68005a691bfcbf44219.tar.gz
blt-e012cfd614d2cc3aab44d68005a691bfcbf44219.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltGrText.C')
-rw-r--r--src/bltGrText.C35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/bltGrText.C b/src/bltGrText.C
index 5189bce..d64b113 100644
--- a/src/bltGrText.C
+++ b/src/bltGrText.C
@@ -48,41 +48,6 @@
#include "bltText.h"
#include "bltBgStyle.h"
-static Blt_HashTable bitmapGCTable;
-static int initialized;
-
-GC Blt_GetBitmapGC(Tk_Window tkwin)
-{
- int isNew;
- GC gc;
- Display *display;
- Blt_HashEntry *hPtr;
-
- if (!initialized) {
- Blt_InitHashTable(&bitmapGCTable, BLT_ONE_WORD_KEYS);
- initialized = TRUE;
- }
- display = Tk_Display(tkwin);
- hPtr = Blt_CreateHashEntry(&bitmapGCTable, (char *)display, &isNew);
- if (isNew) {
- Pixmap bitmap;
- XGCValues gcValues;
- unsigned long gcMask;
- Window root;
-
- root = Tk_RootWindow(tkwin);
- bitmap = Tk_GetPixmap(display, root, 1, 1, 1);
- gcValues.foreground = gcValues.background = 0;
- gcMask = (GCForeground | GCBackground);
- gc = Blt_GetPrivateGCFromDrawable(display, bitmap, gcMask, &gcValues);
- Tk_FreePixmap(display, bitmap);
- Blt_SetHashValue(hPtr, gc);
- } else {
- gc = (GC)Blt_GetHashValue(hPtr);
- }
- return gc;
-}
-
void Blt_GetTextExtents(Tk_Font font, int leader, const char *text, int textLen,
unsigned int *widthPtr, unsigned int *heightPtr)
{