]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/ogl/samples/ogledit/view.cpp
Corrected grey scrolling windows; added C++Builder 3.0 fixes
[wxWidgets.git] / utils / ogl / samples / ogledit / view.cpp
index 3dfb84f2399c185e3678d96b00e22c000dbd0c59..0d8e58232b9c552d26da423005c13ce388c2d440 100644 (file)
@@ -119,7 +119,7 @@ void DiagramView::OnDraw(wxDC *dc)
 
   // Set the scale and origin 
   dc->SetUserScale (actualScale, actualScale); 
-  dc->SetDeviceOrigin (posX, posY); 
+  dc->SetDeviceOrigin ((long) posX, (long) posY); 
 
   // This part was added to preform the print preview and printing functions 
 
@@ -253,6 +253,7 @@ MyCanvas::MyCanvas(wxView *v, wxWindow *parent, wxWindowID id, const wxPoint& po
     const wxSize& size, long style):
  wxShapeCanvas(parent, id, pos, size, style)
 {
+  SetBackgroundColour(*wxWHITE);
   view = v;
 }