From 8f2e60a9619f3db2dea752626e778f753c0714bc Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Mon, 19 Jun 2017 00:00:55 +0200 Subject: Client::makeScreenshot: remove device param We already have the device param as class member --- src/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index aa6a5d30d..9892e08cd 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1740,9 +1740,9 @@ float Client::getCurRate() m_con.getLocalStat(con::CUR_DL_RATE)); } -void Client::makeScreenshot(IrrlichtDevice *device) +void Client::makeScreenshot() { - irr::video::IVideoDriver *driver = device->getVideoDriver(); + irr::video::IVideoDriver *driver = m_device->getVideoDriver(); irr::video::IImage* const raw_image = driver->createScreenShot(); if (!raw_image) -- cgit v1.2.3