freebsd-ports/x11-toolkits/xview/files/patch-lib+libolgx+ol_button.c
Pav Lucistnik bbff923854 - Redo this port. Now it compiles on -current again.
PR:		ports/58176
Submitted by:	Pedro F. Giffuni <giffunip@yahoo.com>
2003-12-13 23:38:21 +00:00

29 lines
1.1 KiB
C

--- lib/libolgx/ol_button.c.orig Mon Sep 29 00:02:39 2003
+++ lib/libolgx/ol_button.c Mon Sep 29 00:02:39 2003
@@ -241,8 +241,12 @@
x + ((centerx > 0) ? centerx : 0),
y + ((centery > 0) ? centery : 0),
(((Pixlabel *) label)->width > width)?
- width:((Pixlabel *)label)->width ,
- (height) ? height : Button_Height(info) - 2, state);
+ width:((Pixlabel *)label)->width ,
+ (height) ?
+ ((((Pixlabel *) label)->height > height) ?
+ height : ((Pixlabel *)label)->height)
+ : Button_Height(info) - 2, state);
+
} else if (state & OLGX_LABEL_IS_XIMAGE) {
int centerx, centery;
@@ -255,7 +259,10 @@
y + ((centery > 0) ? centery : 0),
(((Pixlabel *) label)->width > width)?
width:((Pixlabel *)label)->width ,
- (height) ? height : Button_Height(info) - 2, state);
+ (height) ?
+ ((((Pixlabel *) label)->height > height) ?
+ height : ((Pixlabel *)label)->height)
+ : Button_Height(info) - 2, state);
} else {