Improve FButton mouse click animation

This commit is contained in:
Markus Gans 2018-12-17 00:50:24 +01:00
parent b459d55ae8
commit ae38a45a5e
7 changed files with 11 additions and 11 deletions

View File

@ -1,3 +1,7 @@
2018-12-17 Markus Gans <guru.mail@muenster.de>
* Improve FButton mouse click animation
* Minor data type corrections
2018-12-15 Markus Gans <guru.mail@muenster.de>
* Use of the C++11 auto specifier in the program code
* Code reduction by using of Range-based for loop

View File

@ -345,10 +345,6 @@ void FButton::onMouseMove (FMouseEvent* ev)
void FButton::onTimer (FTimerEvent* ev)
{
delTimer(ev->timerId());
if ( hasShadow() )
clearShadow();
setUp();
}

View File

@ -295,9 +295,9 @@ void FListBox::remove (std::size_t item)
element_count = getCount();
max_line_width = 0;
for (auto&& item : itemlist)
for (auto&& listbox_item : itemlist)
{
std::size_t len = item.getText().getLength();
std::size_t len = listbox_item.getText().getLength();
if ( len > max_line_width )
max_line_width = len;

View File

@ -115,7 +115,7 @@ void FProgressbar::hide()
}
setColor (fg, bg);
auto s = hasShadow() ? 1 : 0;
std::size_t s = hasShadow() ? 1 : 0;
auto size = getWidth() + s;
if ( size == 0 )

View File

@ -203,7 +203,7 @@ void FTextView::hide()
}
setColor (fg, bg);
auto n = isNewFont() ? 1 : 0;
std::size_t n = isNewFont() ? 1 : 0;
auto size = getWidth() + n;
if ( size == 0 )

View File

@ -1486,8 +1486,8 @@ void FVTerm::putArea (int ax, int ay, term_area* area)
if ( area->changes[y].trans_count == 0 )
{
// Line has only covered characters
auto ac = &area->text[y * line_len + ol];
auto tc = &vterm->text[(ay + y) * vterm->width + ax];
ac = &area->text[y * line_len + ol];
tc = &vterm->text[(ay + y) * vterm->width + ax];
putAreaLine (ac, tc, length);
}
else

View File

@ -1317,7 +1317,7 @@ void FWidget::drawFlatBorder()
// left line (on right side)
print (fc::NF_border_line_left);
setPrintPos (x2, y1 + y + 2);
setPrintPos (x2, y1 + int(y) + 2);
}
setPrintPos (x1, y1);