context needs a "window", not the "screen", thanx Rob Stevens for reporting

This commit is contained in:
mathias 2004-11-30 22:50:25 +00:00
parent 33db9b21e2
commit 7c628def00

View file

@ -222,7 +222,7 @@ void bsetroot::solid() {
FbRootWindow root(screen);
FbTk::GContext gc(screen);
FbTk::GContext gc(root);
gc.setForeground(c);
pixmaps[screen] = XCreatePixmap(display(),
@ -290,7 +290,7 @@ void bsetroot::modula(int x, int y) {
if (! b.isAllocated())
b.setPixel(BlackPixel(display(), screen));
FbTk::GContext gc(screen);
FbTk::GContext gc(root);
gc.setForeground(f);
gc.setBackground(b);