Improve FButton mouse click animation
This commit is contained in:
parent
b459d55ae8
commit
ae38a45a5e
|
@ -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
|
||||
|
|
|
@ -345,10 +345,6 @@ void FButton::onMouseMove (FMouseEvent* ev)
|
|||
void FButton::onTimer (FTimerEvent* ev)
|
||||
{
|
||||
delTimer(ev->timerId());
|
||||
|
||||
if ( hasShadow() )
|
||||
clearShadow();
|
||||
|
||||
setUp();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue