diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-05-09 21:59:35 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-05-09 21:59:35 +0200 |
| commit | 7e85875978743055d0e68032b138d972e9ed480b (patch) | |
| tree | 91ac2d8652bb81a0086fb7b184c1abe36c245c7f | |
| parent | 15cc58bf5b3db1475262cb3e4edd5f146b11be17 (diff) | |
Debug embedded PNG
| -rw-r--r-- | src/binres/binres.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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); } |
