nanogui: about draw on GR_ROOT_WINDOW_ID
Subject:
about draw on GR_ROOT_WINDOW_ID
From:
####@####.####
Date:
11 Nov 2001 02:42:50 -0000
Message-Id: <000a01c16a5b$53b12110$2b64a8c0@rdcenter.com>
Hi,I have modified the nanowm.c,when I execute some examples,it always reports
segment error,the error came from the functions of container_buttonup or container_mousemoved,the code as followd:
GrSetGCMode(gc, GR_MODE_XOR|GR_MODE_EXCLUDECHILDREN);
GrGetWindowInfo(window->wid, &info);
GrRect(GR_ROOT_WINDOW_ID,gc,info.x, info.y, pos->width, pos->height);
when execute GrRect,the error occurs.
Thanks a lot!