X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b412f9be504e07559a98ae234f30bb1bd0b2aa1f..33720b2de5ada9513c163a9694e7e267234bf791:/samples/bombs/bombs.cpp diff --git a/samples/bombs/bombs.cpp b/samples/bombs/bombs.cpp index cd652bcd46..cdf7b8570d 100644 --- a/samples/bombs/bombs.cpp +++ b/samples/bombs/bombs.cpp @@ -167,7 +167,7 @@ BombsCanvasClass::BombsCanvasClass(wxFrame *parent, const wxPoint& pos, const wx dc.GetTextExtent(buf, &chw, &chh); dc.SetFont(wxNullFont); - dc.SetMapMode(MM_METRIC); + dc.SetMapMode(wxMM_METRIC); int xcm = dc.LogicalToDeviceX(10.0); int ycm = dc.LogicalToDeviceY(10.0); @@ -183,7 +183,7 @@ BombsCanvasClass::BombsCanvasClass(wxFrame *parent, const wxPoint& pos, const wx } x_cell = (sx+3+X_UNIT)/X_UNIT; y_cell = (sy+3+Y_UNIT)/Y_UNIT; - dc.SetMapMode(MM_TEXT); + dc.SetMapMode(wxMM_TEXT); bmp=NULL; UpdateFieldSize(); }