Warning fixes for VC5 (Igor Korot)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -76,7 +76,7 @@ void wxFontPreviewer::OnPaint(wxPaintEvent& WXUNUSED(event))
|
||||
{
|
||||
dc.SetFont(font);
|
||||
// Calculate vertical centre
|
||||
long w, h;
|
||||
long w = 0, h = 0;
|
||||
dc.GetTextExtent( wxT("X"), &w, &h);
|
||||
dc.SetTextForeground(GetForegroundColour());
|
||||
dc.SetClippingRegion(2, 2, size.x-4, size.y-4);
|
||||
|
Reference in New Issue
Block a user