]> 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 9215dd6978c920300ea85a5e653af5142a4cb3a3..0b77417dcc62bf3f4ffc74ca98070fc7a73fe538 100644 (file)
@@ -167,8 +167,8 @@ 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;
-  event.Position(&fx, &fy);
+  wxCoord fx, fy;
+  event.GetPosition(&fx, &fy);
   int x = fx/(x_cell*X_UNIT);
   int y = fy/(y_cell*Y_UNIT);
   if (x<field_width && y<field_height)