mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
fixed horizontal peak hold, adjusted horizontal and vertical size
This commit is contained in:
parent
56526a5710
commit
03c9b4aba7
@ -102,7 +102,7 @@ namespace ui {
|
|||||||
// show green peak value
|
// show green peak value
|
||||||
if( peak_enabled )
|
if( peak_enabled )
|
||||||
{
|
{
|
||||||
const Rect r5 { r.left(), r.bottom() + peak , r.width() , 1 };
|
const Rect r5 { r.left() + peak - 1 , r.top() , 3 , r.height() };
|
||||||
painter.fill_rectangle(
|
painter.fill_rectangle(
|
||||||
r5,
|
r5,
|
||||||
Color::green()
|
Color::green()
|
||||||
@ -160,7 +160,7 @@ namespace ui {
|
|||||||
// show green peak value if enabled
|
// show green peak value if enabled
|
||||||
if( peak_enabled )
|
if( peak_enabled )
|
||||||
{
|
{
|
||||||
const Rect r5 { r.left(), r.bottom() - peak , r.width() , 1 };
|
const Rect r5 { r.left(), r.bottom() - peak - 1 , r.width() , 3 };
|
||||||
painter.fill_rectangle(
|
painter.fill_rectangle(
|
||||||
r5,
|
r5,
|
||||||
Color::green()
|
Color::green()
|
||||||
|
Loading…
Reference in New Issue
Block a user