mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 10:51:05 +02:00
increase hourglass images, cast to int
Origin commit data
------------------
Commit: 825f7cb7b3
Author: TangoCash <eric@loxat.de>
Date: 2021-10-12 (Tue, 12 Oct 2021)
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
#include <system/helpers.h>
|
#include <system/helpers.h>
|
||||||
#include <neutrinoMessages.h>
|
#include <neutrinoMessages.h>
|
||||||
|
|
||||||
#define MAX_IMAGES 24
|
#define MAX_IMAGES 30
|
||||||
|
|
||||||
CHourGlass::CHourGlass( const int x_pos,
|
CHourGlass::CHourGlass( const int x_pos,
|
||||||
const int y_pos,
|
const int y_pos,
|
||||||
@@ -55,7 +55,7 @@ CHourGlass::CHourGlass( const int x_pos,
|
|||||||
initImageFiles();
|
initImageFiles();
|
||||||
|
|
||||||
hg_file_num = 0;
|
hg_file_num = 0;
|
||||||
hg_interval = interval == HG_AUTO_PAINT_INTERVAL ? 1000/hg_img_files.size() : interval;
|
hg_interval = interval == HG_AUTO_PAINT_INTERVAL ? (int64_t)(1000/hg_img_files.size()) : interval;
|
||||||
hg_timer = new CComponentsTimer(hg_interval);
|
hg_timer = new CComponentsTimer(hg_interval);
|
||||||
hg_timer->OnTimer.connect(sigc::bind(sigc::mem_fun(*this, &CHourGlass::paint), true));
|
hg_timer->OnTimer.connect(sigc::bind(sigc::mem_fun(*this, &CHourGlass::paint), true));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user