comparison src/gui_xmebw.c @ 3624:3ae387af405f v7.3.572

updated for version 7.3.572 Problem: Duplicate statement in if and else. (Dominique Pelle) Solution: Remove the condition and add a TODO.
author Bram Moolenaar <bram@vim.org>
date Fri, 29 Jun 2012 13:19:27 +0200
parents ccda151dde4e
children 04736b4030ec
comparison
equal deleted inserted replaced
3623:a4ced2c38743 3624:3ae387af405f
373 373
374 XpmFreeAttributes(&attr); 374 XpmFreeAttributes(&attr);
375 375
376 XGetGeometry(dpy, pix, &root, &x, &y, &width, &height, &border, &depth); 376 XGetGeometry(dpy, pix, &root, &x, &y, &width, &height, &border, &depth);
377 377
378 if (eb->enhancedbutton.label_location == (int)XmTOP 378 /* TODO: does the shift depend on label_location somehow? */
379 || eb->enhancedbutton.label_location == (int)XmBOTTOM) 379 shift = eb->primitive.shadow_thickness / 2;
380 shift = eb->primitive.shadow_thickness / 2;
381 else
382 shift = eb->primitive.shadow_thickness / 2;
383 380
384 if (shift < 1) 381 if (shift < 1)
385 shift = 1; 382 shift = 1;
386 383
387 sen_pix = XCreatePixmap(dpy, root, width + shift, height + shift, depth); 384 sen_pix = XCreatePixmap(dpy, root, width + shift, height + shift, depth);