Commit 8ac98153 authored by Clément Stenac's avatar Clément Stenac

Patch to zcot's patch by zcot :)

parent 7d3d47c4
......@@ -498,10 +498,10 @@ void Interface::CreateOurMenuBar()
{
// [ MENU BUTTON WIDTH CALCULATION ]
// [ SM_CXDLGFRAME + pixels + textextent + pixels + SM_CXDLGFRAME ]
GetTextExtentPoint32( hdc, menubar->GetLabelTop(i),
strlen( menubar->GetLabelTop(i) ),
&sizing );
i_size += sizing.cx; // + text size..
GetTextExtentPoint32( hdc, menubar->GetLabelTop(i).c_str(),
menubar->GetLabelTop(i).Length(), &sizing );
// + text size..
i_size += sizing.cx;
// +1 more pixel on each size
i_size += 2;
// width of 2 DLGFRAME
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment