diff options
author | lecoanet | 2005-09-13 09:40:22 +0000 |
---|---|---|
committer | lecoanet | 2005-09-13 09:40:22 +0000 |
commit | fe340ac104bb5daccbccd37f9a425a305b3ce403 (patch) | |
tree | 453c2eacb78a955a13e3fdf65dd1e8c44300c1dc /generic | |
parent | 84282d7db53947418a44dbd548f201e83dc5013c (diff) | |
download | tkzinc-fe340ac104bb5daccbccd37f9a425a305b3ce403.zip tkzinc-fe340ac104bb5daccbccd37f9a425a305b3ce403.tar.gz tkzinc-fe340ac104bb5daccbccd37f9a425a305b3ce403.tar.bz2 tkzinc-fe340ac104bb5daccbccd37f9a425a305b3ce403.tar.xz |
Enabled all full refresh on window motion, expose, etc
Fixed Destroy prototype.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkZinc.c | 7 |
1 files changed, 4 insertions, 3 deletions
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); |