1
0
Fork 0

Platform/Unix/X11Display: remove setIcon(const std::string&) as this exists in Generic Display class.

This commit is contained in:
Henrik Hautakoski 2022-10-02 17:06:02 +02:00
parent a8fa3981f4
commit 36c6024649
2 changed files with 0 additions and 12 deletions

View file

@ -224,16 +224,6 @@ void X11Display::setCaption(const std::string& caption)
::XStoreName(Xlib::getDisplay(), m_win, caption.c_str());
}
// TODO: Move this up to the non-platform layer.
void X11Display::setIcon(const std::string& icon)
{
Image img;
if (img.loadFromFile(icon)) {
setIcon(img.getWidth(), img.getHeight(), img.getPixels());
}
}
void X11Display::setIcon(unsigned int width, unsigned int height, const uint8_t *pixels)
{
::Display* disp = Xlib::getDisplay();

View file

@ -46,8 +46,6 @@ public :
virtual void setCaption(const std::string& caption);
virtual void setIcon(const std::string& icon);
virtual void setIcon(unsigned int width, unsigned int height, const uint8_t *pixels);
virtual void showCursor(bool value);