mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 22:43:01 +00:00
it builds on GCC again
This commit is contained in:
parent
cf7aa9139c
commit
ba8c6d8169
2 changed files with 3 additions and 3 deletions
|
@ -134,7 +134,7 @@ void DivEngine::processRow(int i, bool afterDelay) {
|
|||
|
||||
// volume
|
||||
if (pat->data[curRow][3]!=-1) {
|
||||
if ((min(chan[i].volMax,chan[i].volume)>>8)!=pat->data[curRow][3]) {
|
||||
if ((MIN(chan[i].volMax,chan[i].volume)>>8)!=pat->data[curRow][3]) {
|
||||
chan[i].volume=pat->data[curRow][3]<<8;
|
||||
dispatch->dispatch(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
typedef std::string String;
|
||||
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||
#define MAX(a,b) (((a)>(b))?(a):(b))
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue