]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/scroll/scroll.cpp
GdiplusStartup() takes ULONG_PTR, not DWORD (patch 1596318); also deTABified
[wxWidgets.git] / samples / scroll / scroll.cpp
index 7e42ebf2c6a582d2b5e5a2930057386c5bf64f1c..098c34f1ea907ba10d69a19d7aa79c89549c5000 100644 (file)
@@ -698,7 +698,7 @@ void MyScrolledWindowDumb::OnDraw(wxDC& dc)
         CalcScrolledPosition(0, y, NULL, &yPhys);
 
         dc.DrawText(wxString::Format(_T("Line %u (logical %d, physical %d)"),
-                                     line, y, yPhys), 0, y);
+                                     unsigned(line), y, yPhys), 0, y);
         y += m_hLine;
     }
 }
@@ -727,7 +727,7 @@ void MyScrolledWindowSmart::OnDraw(wxDC& dc)
         CalcScrolledPosition(0, y, NULL, &yPhys);
 
         dc.DrawText(wxString::Format(_T("Line %u (logical %d, physical %d)"),
-                                     line, y, yPhys), 0, y);
+                                     unsigned(line), y, yPhys), 0, y);
         y += m_hLine;
     }
 }