aboutsummaryrefslogtreecommitdiff
path: root/generic/tkZinc.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkZinc.c')
-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;