Skip to content

Commit 6c745cb

Browse files
committed
Improve large logo and mid-screen logo display (inspiration from USA-RedDragon)
1 parent 0538a8e commit 6c745cb

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

bin/myevic.bin

76 Bytes
Binary file not shown.

src/mainview.c

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,8 @@ __myevic__ void ShowMainView()
676676

677677
ShowBattery();
678678

679+
int h = ( dfStatus.nologo || HideLogo ) ? 0 : GetLogoHeight();
680+
679681
if ( Screen == 2 || EditModeTimer )
680682
{
681683
DrawInfoLines();
@@ -698,24 +700,34 @@ __myevic__ void ShowMainView()
698700
DrawClock( 54 );
699701
}
700702
}
701-
else
703+
else if ( ( h == 0 ) || !dfStatus.logomid )
702704
{
703705
DrawInfoLines();
704706
}
705707
}
706708

707-
if (( Screen == 1 ) && ( !HideLogo ))
709+
if (( Screen == 1 ) && ( h > 0 ))
708710
{
709-
int h = GetLogoHeight();
711+
int l = 0;
710712

711-
if ( h > 0 )
713+
if ( dfStatus.logomid )
714+
{
715+
l = ( 63 - h ) / 2 + 44;
716+
}
717+
else
712718
{
713-
if ( h > 40 )
719+
if ( h > 43 )
714720
{
715-
DrawFillRect( 0, 48, 63, h, 0 );
721+
DrawHLine( 0, 43, 63, 0 );
722+
723+
if ( h > 50 )
724+
{
725+
DrawFillRect( 0, 52, 63, 70, 0 );
726+
}
716727
}
717-
DrawLOGO( 0, dfStatus.logomid ? 46 : 0 );
718728
}
729+
730+
DrawLOGO( 0, l );
719731
}
720732
}
721733

0 commit comments

Comments
 (0)