Skip to content
Permalink
Browse files

Improve large logo and mid-screen logo display (inspiration from USA-…

…RedDragon)
  • Loading branch information...
ClockSelect committed Jul 25, 2017
1 parent 0538a8e commit 6c745cb40c8b053dbfacbace7693a6c96e3e5d3d
Showing with 19 additions and 7 deletions.
  1. BIN bin/myevic.bin
  2. +19 −7 src/mainview.c
BIN +76 Bytes (100%) bin/myevic.bin
Binary file not shown.
@@ -676,6 +676,8 @@ __myevic__ void ShowMainView()

ShowBattery();

int h = ( dfStatus.nologo || HideLogo ) ? 0 : GetLogoHeight();

if ( Screen == 2 || EditModeTimer )
{
DrawInfoLines();
@@ -698,24 +700,34 @@ __myevic__ void ShowMainView()
DrawClock( 54 );
}
}
else
else if ( ( h == 0 ) || !dfStatus.logomid )
{
DrawInfoLines();
}
}

if (( Screen == 1 ) && ( !HideLogo ))
if (( Screen == 1 ) && ( h > 0 ))
{
int h = GetLogoHeight();
int l = 0;

if ( h > 0 )
if ( dfStatus.logomid )
{
l = ( 63 - h ) / 2 + 44;
}
else
{
if ( h > 40 )
if ( h > 43 )
{
DrawFillRect( 0, 48, 63, h, 0 );
DrawHLine( 0, 43, 63, 0 );

if ( h > 50 )
{
DrawFillRect( 0, 52, 63, 70, 0 );
}
}
DrawLOGO( 0, dfStatus.logomid ? 46 : 0 );
}

DrawLOGO( 0, l );
}
}

0 comments on commit 6c745cb

Please sign in to comment.
You can’t perform that action at this time.