compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -168,7 +168,7 @@ void BombsCanvasClass::Refresh(int xc1, int yc1, int xc2, int yc2)
|
|||||||
void BombsCanvasClass::OnEvent(wxMouseEvent& event)
|
void BombsCanvasClass::OnEvent(wxMouseEvent& event)
|
||||||
{
|
{
|
||||||
long fx, fy;
|
long fx, fy;
|
||||||
event.Position(&fx, &fy);
|
event.GetPosition(&fx, &fy);
|
||||||
int x = fx/(x_cell*X_UNIT);
|
int x = fx/(x_cell*X_UNIT);
|
||||||
int y = fy/(y_cell*Y_UNIT);
|
int y = fy/(y_cell*Y_UNIT);
|
||||||
if (x<field_width && y<field_height)
|
if (x<field_width && y<field_height)
|
||||||
|
Reference in New Issue
Block a user