From e3166784822f0889cd51c827149b0d70cbfad88d Mon Sep 17 00:00:00 2001 From: lecoanet Date: Fri, 29 Mar 2002 13:34:11 +0000 Subject: * Modification du visual demand� en GL. D�sormais on r�clame 24bits sans alpha. Ca permet de tourner Mesa. * itemconfigure encore modifi� pour accepter des attributs inconnus. La modif est en fait dans Item.c * Traitement de l'option -tile pour l'immuniser contre les images sans contenu. --- generic/tkZinc.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/generic/tkZinc.c b/generic/tkZinc.c index 243f0dc..43979d8 100644 --- a/generic/tkZinc.c +++ b/generic/tkZinc.c @@ -658,9 +658,10 @@ ZincObjCmd(ClientData client_data, /* Main window associated with #endif int attribs[] = { GLX_RGBA, GLX_DOUBLEBUFFER, - GLX_BUFFER_SIZE, 32, + GLX_BUFFER_SIZE, 24, + /*GLX_BUFFER_SIZE, 32,*/ GLX_STENCIL_SIZE, 8, - GLX_ALPHA_SIZE, 8, + /*GLX_ALPHA_SIZE, 8,*/ None }; wi->gl_visual = glXChooseVisual(wi->dpy, XScreenNumberOfScreen(wi->screen), attribs); @@ -3523,11 +3524,7 @@ WidgetObjCmd(ClientData client_data, /* Information about the widget. */ if (argc < 2) { goto done; } - /* - * Report an error only if itemconfigure was invoke - * on a specific item. - */ - if ((result == ZN_ERROR) && (search_var->type == 1)) { + if (result == ZN_ERROR) { goto error; } } @@ -4379,8 +4376,8 @@ Configure(Tcl_Interp *interp,/* Used for error reporting. */ if (wi->tile != ZnUnspecifiedImage) { Tk_FreeImage(wi->tile); } - wi->tile = Tk_GetImage(wi->interp, wi->win, wi->tile_name, - TileChange, (ClientData) wi); + ValidateImage(wi, wi, wi->tile_name, TileChange, + &wi->tile, "zinc option -tile"); bbox.orig.x = bbox.orig.y = 0; bbox.corner.x = wi->width; bbox.corner.y = wi->height; -- cgit v1.1