block all screen update when using full screen visu on small screens - release

This commit is contained in:
philippe44
2020-03-24 17:31:07 -07:00
parent cd5693a81c
commit d2a9454200

View File

@@ -612,12 +612,13 @@ static void grfe_handler( u8_t *data, int len) {
scroller.active = false; scroller.active = false;
// we are not in control or we are displaying visu on a small screen, do not do screen update // visu has priority when full screen on small screens
if ((visu.mode & VISU_ESP32) && !visu.col && visu.row < SB_HEIGHT) { if ((visu.mode & VISU_ESP32) && !visu.col && visu.row < SB_HEIGHT) {
xSemaphoreGive(displayer.mutex); xSemaphoreGive(displayer.mutex);
return; return;
} }
// are we in control
if (displayer.owned) { if (displayer.owned) {
// did we have something that might have write on the bottom of a SB_HEIGHT+ display // did we have something that might have write on the bottom of a SB_HEIGHT+ display
if (displayer.dirty) { if (displayer.dirty) {
@@ -733,6 +734,9 @@ static void grfg_handler(u8_t *data, int len) {
LOG_DEBUG("gfrg s:%hu w:%hu (len:%u)", htons(pkt->screen), htons(pkt->width), len); LOG_DEBUG("gfrg s:%hu w:%hu (len:%u)", htons(pkt->screen), htons(pkt->width), len);
// on small screen, visu has priority when full screen
if ((visu.mode & VISU_ESP32) && !visu.col && visu.row < SB_HEIGHT) return;
xSemaphoreTake(displayer.mutex, portMAX_DELAY); xSemaphoreTake(displayer.mutex, portMAX_DELAY);
// size of scrollable area (less than background) // size of scrollable area (less than background)