[teklib-general] changeset in /hg/teklib/current: added quick hack for pens; cleanup
Franciska Schulze
fschulze at neoscientists.org
Mon Nov 26 16:24:22 CET 2007
changeset 70ce4c38476e in /hg/teklib/current
details: http://teklib.org:8001/hg/teklib/current?cmd=changeset;node=70ce4c38476e
description:
added quick hack for pens; cleanup
diffs (45 lines):
diff -r 384c51311419 -r 70ce4c38476e src/visual/posix/visual_host.h
--- a/src/visual/posix/visual_host.h Mon Sep 24 12:34:14 2007 +0200
+++ b/src/visual/posix/visual_host.h Mon Sep 24 12:38:20 2007 +0200
@@ -13,6 +13,14 @@
#include <X11/Xft/Xft.h>
#include "visual_font.h"
+
+#define NUMCOL 256
+
+struct VisColor
+{
+ XColor xcolor;
+ XftColor xftcolor;
+};
struct FontMan
{
@@ -48,8 +56,10 @@ typedef struct
Colormap colormap;
GC gc;
+ TINT ctidx;
+ struct VisColor coltab[NUMCOL];
+
XftDraw *draw;
- XftColor xftwhite; /* FIXME: this is just a quick hack */
TAPTR curfont; /* current active font */
TINT shm, shmevent;
@@ -94,14 +104,6 @@ typedef struct
struct XftInterface xftiface;
TBOOL use_xft;
- /* Aufruf:
-
- (*g->xftiface.XftFontOpen)()
-
- */
-
-
-
} GLOBAL;
#define DEFFONTNAME "-misc-fixed-medium-r-normal-*-14-*-*-*-*-*-*-*"
More information about the teklib-general
mailing list