mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
- glcd: fix compiler warnings
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -116,11 +116,11 @@ void RenderClock(int x, int y)
|
||||
cglcd->imageShow(file[ANALOG_CLOCK], x, y, 0, 0, false, true, false, false, false);
|
||||
}
|
||||
|
||||
void RenderHands(int hour, int min, int sec, int posx, int posy, int hour_size, int min_size, int sec_size)
|
||||
void RenderHands(int hour, int min, int sec, int posx, int posy, int hour_size, int min_size, int /*sec_size*/)
|
||||
{
|
||||
cGLCD *cglcd = cGLCD::getInstance();
|
||||
|
||||
int time_sec, time_min, time_hour, sec_x, sec_y, min_x, min_y, hour_x, hour_y, dia;
|
||||
int time_sec, time_min, time_hour, /*sec_x, sec_y,*/ min_x, min_y, hour_x, hour_y, dia;
|
||||
double pi = 3.1415926535897932384626433832795, sAngleInRad, mAngleInRad, mAngleSave, hAngleInRad;
|
||||
|
||||
time_sec = sec;
|
||||
@@ -132,8 +132,10 @@ void RenderHands(int hour, int min, int sec, int posx, int posy, int hour_size,
|
||||
sAngleInRad = ((6 * time_sec) * (2 * pi / 360));
|
||||
sAngleInRad -= pi / 2;
|
||||
|
||||
/*
|
||||
sec_x = int((dia * 0.9 * cos(sAngleInRad)));
|
||||
sec_y = int((dia * 0.9 * sin(sAngleInRad)));
|
||||
*/
|
||||
|
||||
mAngleInRad = ((6 * time_min) * (2 * pi / 360));
|
||||
mAngleSave = mAngleInRad;
|
||||
|
Reference in New Issue
Block a user