aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlecoanet2002-03-29 13:34:11 +0000
committerlecoanet2002-03-29 13:34:11 +0000
commite3166784822f0889cd51c827149b0d70cbfad88d (patch)
tree2799b9faface5d8a7b3a3e8628256c0e0ab4d06b
parent2930ac67016c1ee3f00e147dc7251aea1108b2e2 (diff)
downloadtkzinc-e3166784822f0889cd51c827149b0d70cbfad88d.zip
tkzinc-e3166784822f0889cd51c827149b0d70cbfad88d.tar.gz
tkzinc-e3166784822f0889cd51c827149b0d70cbfad88d.tar.bz2
tkzinc-e3166784822f0889cd51c827149b0d70cbfad88d.tar.xz
* 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.
-rw-r--r--generic/tkZinc.c15
1 files 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;