mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-17 18:33:41 +02:00
- controlapi: fix filename in GlcdScreenshotCGI()
This commit is contained in:
@@ -2200,14 +2200,17 @@ void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_GRAPHLCD
|
||||
void CControlAPI::GlcdScreenshotCGI(CyhookHandler *hh)
|
||||
{
|
||||
std::string filename = "/tmp/glcdscreenshot.png";
|
||||
std::string filename = "screenshot-glcd";
|
||||
|
||||
if(!hh->ParamList["name"].empty())
|
||||
filename = hh->ParamList["name"];
|
||||
|
||||
filename = "/tmp/" + filename + ".png";
|
||||
|
||||
cGLCD *cglcd = cGLCD::getInstance();
|
||||
if (cglcd) {
|
||||
if (cglcd->dumpBuffer((uint32_t*)cglcd->bitmap->Data(), cGLCD::PNG, filename.c_str()))
|
||||
|
Reference in New Issue
Block a user