diff --git a/src/binres/binres.cpp b/src/binres/binres.cpp index 89f39d2..f6153f6 100644 --- a/src/binres/binres.cpp +++ b/src/binres/binres.cpp @@ -8,21 +8,21 @@ wxBitmap LoadPNG(std::string icon, wxSize size) { wxBitmap LoadPNG(std::string icon) { if (icon == "swap") { - return (wxBITMAP_PNG(swap)); + return (wxBITMAP_PNG_FROM_DATA(swap)); } else if (icon == "zoomin") { - return (wxBITMAP_PNG(zoomin)); + return (wxBITMAP_PNG_FROM_DATA(zoomin)); } else if (icon == "zoomout") { - return (wxBITMAP_PNG(zoomout)); + return (wxBITMAP_PNG_FROM_DATA(zoomout)); } else if (icon == "cburnett") { - return (wxBITMAP_PNG(cburnett)); + return (wxBITMAP_PNG_FROM_DATA(cburnett)); } else if (icon == "chesscom_8bits") { - return (wxBITMAP_PNG(chesscom_8bits)); + return (wxBITMAP_PNG_FROM_DATA(chesscom_8bits)); } else if (icon == "hide") { - return (wxBITMAP_PNG(hide)); + return (wxBITMAP_PNG_FROM_DATA(hide)); } else if (icon == "mat") { - return (wxBITMAP_PNG(mat)); + return (wxBITMAP_PNG_FROM_DATA(mat)); } else if (icon == "ochess") { - return (wxBITMAP_PNG(ochess)); + return (wxBITMAP_PNG_FROM_DATA(ochess)); } return (wxNullBitmap); }