소스 검색

Bigger background pixmap

master
Bert 14 년 전
부모
커밋
376c0d90c7
1개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. +7
    -4
      window.c

+ 7
- 4
window.c 파일 보기

@@ -120,14 +120,17 @@ int win_configure(win_t *win, XConfigureEvent *cev) {
}

void win_clear(win_t *win) {
win_env_t *e;

if (!win)
return;

e = &win->env;

if (win->pm)
XFreePixmap(win->env.dpy, win->pm);
win->pm = XCreatePixmap(win->env.dpy, win->xwin, win->w, win->h,
win->env.depth);
XFillRectangle(win->env.dpy, win->pm, win->bgc, 0, 0, win->w, win->h);
XFreePixmap(e->dpy, win->pm);
win->pm = XCreatePixmap(e->dpy, win->xwin, e->scrw, e->scrh, e->depth);
XFillRectangle(e->dpy, win->pm, win->bgc, 0, 0, e->scrw, e->scrh);
}

void win_draw(win_t *win) {


불러오는 중...
취소
저장