From a961191863b750de12f49bd7f78298598defd8ce Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 25 Sep 2017 13:08:06 +0200 Subject: [PATCH 1/2] - bouqueteditor_bouquets: RC_yellow now stops move bouquets too --- src/gui/bedit/bouqueteditor_bouquets.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/bedit/bouqueteditor_bouquets.cpp b/src/gui/bedit/bouqueteditor_bouquets.cpp index 3c0faa388..b59d8f92c 100644 --- a/src/gui/bedit/bouqueteditor_bouquets.cpp +++ b/src/gui/bedit/bouqueteditor_bouquets.cpp @@ -304,6 +304,8 @@ int CBEBouquetWidget::exec(CMenuTarget* parent, const std::string & /*actionKey* liststart = (selected/items_count)*items_count; if (state == beDefault) beginMoveBouquet(); + else if (state == beMoving) + finishMoveBouquet(); paintItem(selected - liststart); } } @@ -312,7 +314,7 @@ int CBEBouquetWidget::exec(CMenuTarget* parent, const std::string & /*actionKey* if (selected < Bouquets->size()) /* Bouquets->size() might be 0 */ { if (state == beDefault) - renameBouquet(); + renameBouquet(); } } else if (msg == CRCInput::RC_pause) @@ -320,7 +322,7 @@ int CBEBouquetWidget::exec(CMenuTarget* parent, const std::string & /*actionKey* if (selected < Bouquets->size()) /* Bouquets->size() might be 0 */ { if (state == beDefault) - switchHideBouquet(); + switchHideBouquet(); } } else if (msg == CRCInput::RC_stop) @@ -328,7 +330,7 @@ int CBEBouquetWidget::exec(CMenuTarget* parent, const std::string & /*actionKey* if (selected < Bouquets->size()) /* Bouquets->size() might be 0 */ { if (state == beDefault) - switchLockBouquet(); + switchLockBouquet(); } } else if (msg == CRCInput::RC_ok) From 96bb48b28143baa2fbe0c710da40447a57a397c4 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 25 Sep 2017 13:51:56 +0200 Subject: [PATCH 2/2] - menue: fix coordinates for savescreen function --- src/gui/widget/menue.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 7ec68a0f6..53c99dbff 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -1078,7 +1078,7 @@ void CMenuWidget::hide() info_box->kill(); if (details_line) details_line->hide(); - frameBuffer->paintBackgroundBoxRel(x, y, full_width, full_height/* + footer_height*/); // full_height includes footer_height : see calcSize + frameBuffer->paintBackgroundBoxRel(x, y, full_width, full_height); // full_height includes footer_height : see calcSize //paintHint(-1); } paintHint(-1); @@ -1216,7 +1216,7 @@ void CMenuWidget::calcSize() scrollbar_width = SCROLLBAR_WIDTH; full_width = width + scrollbar_width + OFFSET_SHADOW; - full_height = height + footer_height + OFFSET_SHADOW/* + OFFSET_INTER*/; // hintbox is handled separately + full_height = height + footer_height + OFFSET_SHADOW; // hintbox is handled separately /* + DETAILSLINE_WIDTH for the hintbox connection line * + center_offset for symmetry @@ -1300,7 +1300,7 @@ void CMenuWidget::setMenuPos(const int& menu_width) int scr_y = frameBuffer->getScreenY(); int scr_w = frameBuffer->getScreenWidth(); int scr_h = frameBuffer->getScreenHeight(); - int real_h = full_height/* + footer_height*/ + hint_height; // full_height includes footer_height : see calcSize + int real_h = full_height + OFFSET_INTER + hint_height + OFFSET_SHADOW; // full_height includes footer_height : see calcSize int x_old = x; int y_old = y; //configured positions @@ -1420,7 +1420,7 @@ void CMenuWidget::saveScreen() return; delete[] background; - saveScreen_height = full_height/* + footer_height*/; // full_height includes footer_height : see calcSize + saveScreen_height = full_height + OFFSET_INTER + hint_height + OFFSET_SHADOW; // full_height includes footer_height : see calcSize saveScreen_width = full_width; saveScreen_y = y; saveScreen_x = x;