Debug embedded PNG

This commit is contained in:
Loic Guegan 2023-05-09 21:59:35 +02:00
parent 15cc58bf5b
commit 7e85875978

View file

@ -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);
}