context needs a "window", not the "screen", thanx Rob Stevens for reporting
This commit is contained in:
parent
33db9b21e2
commit
7c628def00
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ void bsetroot::solid() {
|
||||||
|
|
||||||
FbRootWindow root(screen);
|
FbRootWindow root(screen);
|
||||||
|
|
||||||
FbTk::GContext gc(screen);
|
FbTk::GContext gc(root);
|
||||||
gc.setForeground(c);
|
gc.setForeground(c);
|
||||||
|
|
||||||
pixmaps[screen] = XCreatePixmap(display(),
|
pixmaps[screen] = XCreatePixmap(display(),
|
||||||
|
@ -290,7 +290,7 @@ void bsetroot::modula(int x, int y) {
|
||||||
if (! b.isAllocated())
|
if (! b.isAllocated())
|
||||||
b.setPixel(BlackPixel(display(), screen));
|
b.setPixel(BlackPixel(display(), screen));
|
||||||
|
|
||||||
FbTk::GContext gc(screen);
|
FbTk::GContext gc(root);
|
||||||
|
|
||||||
gc.setForeground(f);
|
gc.setForeground(f);
|
||||||
gc.setBackground(b);
|
gc.setBackground(b);
|
||||||
|
|
Loading…
Reference in a new issue