fix segfault from 352fcdf54d

Origin commit data
------------------
Branch: ni/coolstream
Commit: 43a61920ac
Author: TangoCash <eric@loxat.de>
Date: 2022-11-21 (Mon, 21 Nov 2022)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2022-11-21 19:26:38 +01:00
committed by vanhofen
parent c12817886e
commit 4bb7ecec9e
3 changed files with 2 additions and 7 deletions

View File

@@ -137,7 +137,6 @@ cGLCD::cGLCD()
InitAnalogClock();
InitDigitalClock();
InitSimpleClock();
InitWeather();
Update();
}
@@ -667,6 +666,8 @@ void cGLCD::updateFonts()
}
}
WeatherUpdateFonts();
fonts_initialized = true;
}

View File

@@ -51,11 +51,6 @@ int weather_fontsize;
int standby_weather_percent;
int standby_weather_fontsize;
void InitWeather()
{
WeatherUpdateFonts();
}
void WeatherUpdateFonts()
{
cGLCD *cglcd = cGLCD::getInstance();

View File

@@ -28,7 +28,6 @@
#pragma GCC diagnostic warning "-Wunused-parameter"
#include "glcd.h"
void InitWeather();
void WeatherUpdateFonts();
void RenderWeather(int cx, int cy, int nx, int ny, bool standby);
void ShowWeather(bool standby);