From 5f5e46911022be4e9a843fc259fdb24ccc303594 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 17 May 2011 14:18:02 +0000 Subject: [PATCH] Cycles: panel header drawing tweak. --- source/blender/editors/interface/interface_panel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 2e41559f9ac..cd0d3c63dbd 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -494,13 +494,13 @@ void ui_draw_aligned_panel(uiStyle *style, uiBlock *block, rcti *rect) headrect.ymax= headrect.ymin + floor(PNL_HEADER/block->aspect + 0.001f); { - float minx= rect->xmin+5.0f/block->aspect; - float maxx= rect->xmax-5.0f/block->aspect; + float minx= rect->xmin/block->aspect; + float maxx= rect->xmax/block->aspect; float y= headrect.ymax; glEnable(GL_BLEND); glColor4f(0.0f, 0.0f, 0.0f, 0.1f); - uiSetRoundBox(15); + uiSetRoundBox(0); uiDrawBox(GL_POLYGON, minx, headrect.ymin, maxx, y+1, 4); glDisable(GL_BLEND); }