summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-06-19 00:00:55 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-06-19 00:00:55 +0200
commit8f2e60a9619f3db2dea752626e778f753c0714bc (patch)
tree3b2c3733e60138f615a0a9b30131173c0438a8a4 /src/client.cpp
parent4faaadc8d50d6ab7a19d22bd5a760c4b8321a51f (diff)
downloadminetest-8f2e60a9619f3db2dea752626e778f753c0714bc.tar.gz
minetest-8f2e60a9619f3db2dea752626e778f753c0714bc.tar.bz2
minetest-8f2e60a9619f3db2dea752626e778f753c0714bc.zip
Client::makeScreenshot: remove device param
We already have the device param as class member
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 2 insertions, 2 deletions
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)