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
------------------
Branch: ni/coolstream
Commit: da06813e29
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-09 (Thu, 09 Feb 2023)
Origin message was:
------------------
- controlapi: fix filename in GlcdScreenshotCGI()
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2209,14 +2209,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