From cb349f69fae69fa1a8139fdb7e294737e753a74e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 11 Oct 2006 06:44:51 +0000 Subject: [PATCH] distrib changes to enable graphics context and add gdiplus.dll git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/dockart.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aui/dockart.cpp b/src/aui/dockart.cpp index 9fbcddae2e..a7013068c7 100644 --- a/src/aui/dockart.cpp +++ b/src/aui/dockart.cpp @@ -153,9 +153,9 @@ static void DrawGradientRectangle(wxDC& dc, int r,g,b; - r = start_color.Red() + ((i*rd*100)/high)/100; - g = start_color.Green() + ((i*gd*100)/high)/100; - b = start_color.Blue() + ((i*bd*100)/high)/100; + r = start_color.Red() + (high == 0 ? 0 : (((i*rd*100)/high)/100)); + g = start_color.Green() + (high == 0 ? 0 : (((i*gd*100)/high)/100)); + b = start_color.Blue() + (high == 0 ? 0 : (((i*bd*100)/high)/100)); wxPen p(wxColor((unsigned char)r, (unsigned char)g, -- 2.45.2