From fe340ac104bb5daccbccd37f9a425a305b3ce403 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Tue, 13 Sep 2005 09:40:22 +0000 Subject: Enabled all full refresh on window motion, expose, etc Fixed Destroy prototype. --- generic/tkZinc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'generic') diff --git a/generic/tkZinc.c b/generic/tkZinc.c index 9467297..4fd4bfa 100644 --- a/generic/tkZinc.c +++ b/generic/tkZinc.c @@ -521,7 +521,7 @@ static int Configure _ANSI_ARGS_((Tcl_Interp *interp, ZnWInfo *wi, int argc, Tcl_Obj *CONST args[])); #endif static void Redisplay _ANSI_ARGS_((ClientData client_data)); -static void Destroy _ANSI_ARGS_((char *mem_ptr)); +static void Destroy _ANSI_ARGS_((ZnWInfo *wi)); static void InitZinc _ANSI_ARGS_((Tcl_Interp *interp)); static void Focus _ANSI_ARGS_((ZnWInfo *wi, ZnBool got_focus)); static void Update _ANSI_ARGS_((ZnWInfo *wi)); @@ -7100,7 +7100,7 @@ TopEvent(ClientData client_data, /* Information about widget. */ ZnWInfo *wi = (ZnWInfo *) client_data; if (event->type == ConfigureNotify) { /*printf("Window moved\n");*/ - //SET(wi->flags, ZN_CONFIGURE_EVENT); + SET(wi->flags, ZN_CONFIGURE_EVENT); } } @@ -7172,7 +7172,7 @@ Event(ClientData client_data, /* Information about widget. */ else if (event->type == Expose) { ZnDim width, height; - //SET(wi->flags, ZN_CONFIGURE_EVENT); + SET(wi->flags, ZN_CONFIGURE_EVENT); bbox.orig.x = (((XExposeEvent*) event)->x); bbox.orig.y = (((XExposeEvent*) event)->y); @@ -8506,6 +8506,7 @@ Repair(ZnWInfo *wi) glDisable(GL_BLEND); glDisable(GL_STENCIL_TEST); glDrawBuffer(GL_FRONT); + glReadBuffer(GL_BACK); glRasterPos2i(darea_x1, darea_y2); glCopyPixels(darea_x1, int_height-darea_y2, darea_x2 - darea_x1, darea_y2 - darea_y1, GL_COLOR); -- cgit v1.1