Skip to content

Commit

Permalink
temporarily disable screencaps on Pi 4
Browse files Browse the repository at this point in the history
  • Loading branch information
IanSB committed Nov 29, 2021
1 parent 2731fd1 commit be87cba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/defs.h
Expand Up @@ -22,6 +22,10 @@
#define CACHED_SCREEN_SIZE 0x00100000 // size of cached screen area
#endif

#ifdef RPI4
#define DISABLE_SCREENCAPS
#endif

// Define how the Pi Framebuffer is initialized
// - if defined, use the property interface (Channel 8)
// - if not defined, use to the the framebuffer interface (Channel 1)
Expand Down
8 changes: 8 additions & 0 deletions src/filesystem.c
Expand Up @@ -377,6 +377,14 @@ void capture_screenshot(capture_info_t *capinfo, char *profile) {
uint8_t *png;
unsigned int png_len;

#ifdef DISABLE_SCREENCAPS
clear_menu_bits();
osd_clear();
osd_set(0, ATTR_DOUBLE_SIZE, "Screen Capture");
osd_set(2, 0, "Not yet working on Pi 4");
return;
#endif

init_filesystem();

result = f_mkdir(CAPTURE_BASE);
Expand Down

0 comments on commit be87cba

Please sign in to comment.