- if (tag.HasParam(wxT("WIDTH"))) tag.ScanParam(wxT("WIDTH"), wxT("%i"), &w);
- if (tag.HasParam(wxT("HEIGHT"))) tag.ScanParam(wxT("HEIGHT"), wxT("%i"), &h);
+ if (tag.HasParam(wxT("WIDTH")))
+ tag.GetParamAsInt(wxT("WIDTH"), &w);
+ if (tag.HasParam(wxT("HEIGHT")))
+ tag.GetParamAsInt(wxT("HEIGHT"), &h);