Fix some blank panels not having matching background color
This commit is contained in:
parent
6c7f478515
commit
809558eb71
3 changed files with 28 additions and 0 deletions
|
@ -20,6 +20,8 @@
|
|||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
#include "nanovg.h"
|
||||
|
||||
// fix blendish build, missing symbol in debug mode
|
||||
#ifndef NDEBUG
|
||||
extern "C" {
|
||||
|
@ -39,6 +41,14 @@ float FollowerBase::efGainMaxDecibelsDebug = 12.0f;
|
|||
}
|
||||
#endif
|
||||
|
||||
// Special nvgRGB for blank panels
|
||||
extern "C" {
|
||||
NVGcolor nvgRGBblank(unsigned char, unsigned char, unsigned char)
|
||||
{
|
||||
return nvgRGB(0x20, 0x20, 0x20);
|
||||
}
|
||||
}
|
||||
|
||||
// Compile those nice implementation-in-header little libraries
|
||||
#define NANOSVG_IMPLEMENTATION
|
||||
#define NANOSVG_ALL_COLOR_KEYWORDS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue