]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/bombs/bombs1.cpp
Made wxEditor constructor args consistent with other window classes
[wxWidgets.git] / samples / bombs / bombs1.cpp
index f9b24f48eb1e304e11cc56bbe2f67e3e22299156..0b77417dcc62bf3f4ffc74ca98070fc7a73fe538 100644 (file)
@@ -167,7 +167,7 @@ void BombsCanvasClass::Refresh(int xc1, int yc1, int xc2, int yc2)
 // Called when the canvas receives a mouse event.
 void BombsCanvasClass::OnEvent(wxMouseEvent& event)
 {
-  long fx, fy;
+  wxCoord fx, fy;
   event.GetPosition(&fx, &fy);
   int x = fx/(x_cell*X_UNIT);
   int y = fy/(y_cell*Y_UNIT);