removed hint def from hyper.h

This commit is contained in:
Zeno Rogue 2019-12-14 11:53:27 +01:00
parent f772f9b7fd
commit 059953fe58
2 changed files with 11 additions and 12 deletions

10
hyper.h
View File

@ -659,16 +659,6 @@ namespace scores { void load(); }
namespace leader { void showMenu(); void handleKey(int sym, int uni); }
#endif
struct hint {
time_t last;
function<bool()> usable;
function<void()> display;
function<void()> action;
};
extern hint hints[];
int counthints();
int textwidth(int siz, const string &str);
#if CAP_GL
int gl_width(int size, const char *s);

View File

@ -40,7 +40,16 @@ void noaction() {}
function<void()> cancel = noaction;
hint hints[] = {
#if HDR
struct hint {
time_t last;
function<bool()> usable;
function<void()> display;
function<void()> action;
};
#endif
EX hint hints[] = {
{
0,
@ -512,7 +521,7 @@ EX void handleKeyQuit(int sym, int uni) {
}
}
int counthints() {
EX int counthints() {
for(int h=0;; h++) if(hints[h].last < 0) return h;
}