screenshot: Workaround for broken osd screenshot with new fb driver...

...and 1280x720 resolution.
This commit is contained in:
M. Liebmann
2017-02-14 12:36:29 +01:00
parent 145c0d41b4
commit 56446c358f
2 changed files with 85 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ class CScreenShot : public OpenThreads::Thread
unsigned char * pixel_data;
int xres;
int yres;
bool extra_osd;
bool get_osd;
bool get_video;
bool scale_to_video;
@@ -52,6 +53,9 @@ class CScreenShot : public OpenThreads::Thread
bool SaveJpg();
bool SaveBmp();
void run();
#ifdef BOXMODEL_CS_HD2
bool mergeOsdScreen(uint32_t dx, uint32_t dy, fb_pixel_t* osdData);
#endif
public:
CScreenShot(const std::string fname = "", screenshot_format_t fmt = CScreenShot::FORMAT_JPG);