~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement tick marks in the Type menu on Windows. Now all my front
[sgt/puzzles]
/
misc.c
diff --git
a/misc.c
b/misc.c
index
8f5314c
..
d3ab815
100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-167,14
+167,12
@@
unsigned char *hex2bin(const char *in, int outlen)
return ret;
}
return ret;
}
-void game_mkhighlight(frontend *fe, float *ret,
- int background, int highlight, int lowlight)
+void game_mkhighlight
_specific
(frontend *fe, float *ret,
+
int background, int highlight, int lowlight)
{
float max;
int i;
{
float max;
int i;
- frontend_default_colour(fe, &ret[background * 3]);
-
/*
* Drop the background colour so that the highlight is
* noticeably brighter than it while still being under 1.
/*
* Drop the background colour so that the highlight is
* noticeably brighter than it while still being under 1.
@@
-194,6
+192,13
@@
void game_mkhighlight(frontend *fe, float *ret,
}
}
}
}
+void game_mkhighlight(frontend *fe, float *ret,
+ int background, int highlight, int lowlight)
+{
+ frontend_default_colour(fe, &ret[background * 3]);
+ game_mkhighlight_specific(fe, ret, background, highlight, lowlight);
+}
+
static void memswap(void *av, void *bv, int size)
{
char tmpbuf[512];
static void memswap(void *av, void *bv, int size)
{
char tmpbuf[512];