From a3f430c224a58d17c0fe25f41255f7e02c54656c Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 30 Apr 2020 14:08:25 +0300 Subject: [PATCH] nyx: Add capture effect on screenshots --- nyx/nyx_gui/frontend/gui.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nyx/nyx_gui/frontend/gui.c b/nyx/nyx_gui/frontend/gui.c index 56601ae..43dc0dd 100644 --- a/nyx/nyx_gui/frontend/gui.c +++ b/nyx/nyx_gui/frontend/gui.c @@ -123,6 +123,12 @@ static void _save_fb_to_bmp() lv_obj_set_width(mbox, LV_DPI * 4); lv_obj_set_top(mbox, true); lv_obj_align(mbox, NULL, LV_ALIGN_IN_TOP_LEFT, 0, 0); + + // Capture effect. + display_backlight_brightness(255, 100); + msleep(150); + display_backlight_brightness(h_cfg.backlight - 20, 100); + manual_system_maintenance(true); memcpy(bitmap + 0x36, fb, 0x384000);