mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
controlapi: fix filename in GlcdScreenshotCGI()
Origin commit data
------------------
Commit: da06813e29
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-09 (Thu, 09 Feb 2023)
Origin message was:
------------------
- controlapi: fix filename in GlcdScreenshotCGI()
This commit is contained in:
@@ -2209,14 +2209,17 @@ void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_GRAPHLCD
|
#ifdef ENABLE_GRAPHLCD
|
||||||
void CControlAPI::GlcdScreenshotCGI(CyhookHandler *hh)
|
void CControlAPI::GlcdScreenshotCGI(CyhookHandler *hh)
|
||||||
{
|
{
|
||||||
std::string filename = "/tmp/glcdscreenshot.png";
|
std::string filename = "screenshot-glcd";
|
||||||
|
|
||||||
if(!hh->ParamList["name"].empty())
|
if(!hh->ParamList["name"].empty())
|
||||||
filename = hh->ParamList["name"];
|
filename = hh->ParamList["name"];
|
||||||
|
|
||||||
|
filename = "/tmp/" + filename + ".png";
|
||||||
|
|
||||||
cGLCD *cglcd = cGLCD::getInstance();
|
cGLCD *cglcd = cGLCD::getInstance();
|
||||||
if (cglcd) {
|
if (cglcd) {
|
||||||
if (cglcd->dumpBuffer((uint32_t*)cglcd->bitmap->Data(), cGLCD::PNG, filename.c_str()))
|
if (cglcd->dumpBuffer((uint32_t*)cglcd->bitmap->Data(), cGLCD::PNG, filename.c_str()))
|
||||||
|
Reference in New Issue
Block a user