if (!state.drawing) {
glBegin(GL_LINES);
glVertex2f(state.x, state.y);
- }
+ state.drawing = 1;
+ } else
+ glVertex2f(state.x, state.y);
state.x = (to->x >> 6) + (to->x & 63)/64;
state.y = (to->y >> 6) + (to->y & 63)/64;
printf("line to %f:%f\n", state.x, state.y);
if ((Atom)report.xclient.data.l[0] == delete_win)
quit = 1;
case Expose:
- glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
+ glClear(GL_COLOR_BUFFER_BIT);
GlftRenderString(font, argv[2], strlen(argv[2]), 0, 0);
glXSwapBuffers(display, win);
case ConfigureNotify: