modified tooltip heights
authorRob Haarsma <phaseIV@zonnet.nl>
Fri, 9 May 2003 11:39:37 +0000 (11:39 +0000)
committerRob Haarsma <phaseIV@zonnet.nl>
Fri, 9 May 2003 11:39:37 +0000 (11:39 +0000)
source/blender/src/interface.c

index 4b61580c0ac4dc9e10e1f41ca1d09239570e31db..0c55905985892be874abf124993632b388b6724f 100644 (file)
@@ -3291,6 +3291,13 @@ static uiSaveUnder *ui_draw_but_tip(uiBut *but)
                y2 += 36;
        }
 
+       // adjust tooltip heights
+       if(mywinget()==G.curscreen->mainwin)
+               y2 -= G.ui_international ? 4:1;         //tip is from pulldownmenu
+       else if(curarea->win != mywinget())
+               y2 -= G.ui_international ? 5:1;         //tip is from a windowheader
+//     else y2 += 1;                                                   //tip is from button area
+
        su= ui_bgnpupdraw((int)(x1-1), (int)(y1-1), (int)(x2+4), (int)(y2+4), 0);
 
        glColor3ub(0xD0, 0xD0, 0xC0);