From 7e85875978743055d0e68032b138d972e9ed480b Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 9 May 2023 21:59:35 +0200 Subject: [PATCH] Debug embedded PNG --- src/binres/binres.cpp | 16 ++++++++-------- 1 file 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); }