Fix unmovable Cardinal blank panel
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
1a4534bf22
commit
e1c629ee5e
2 changed files with 2 additions and 12 deletions
|
@ -80,7 +80,7 @@
|
||||||
"slug": "Blank",
|
"slug": "Blank",
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"name": "Blank",
|
"name": "Blank",
|
||||||
"description": "Cardinal's own blank panel",
|
"description": "Cardinal's own blank panel, featuring Hatsune Miku",
|
||||||
"tags": [
|
"tags": [
|
||||||
"Visual"
|
"Visual"
|
||||||
]
|
]
|
||||||
|
|
|
@ -36,7 +36,7 @@ struct CardinalBlankModule : Module {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CardinalBlankImage : OpaqueWidget {
|
struct CardinalBlankImage : Widget {
|
||||||
int imageId = -2;
|
int imageId = -2;
|
||||||
int imageWidth = 0;
|
int imageWidth = 0;
|
||||||
int imageHeight = 0;
|
int imageHeight = 0;
|
||||||
|
@ -47,14 +47,6 @@ struct CardinalBlankImage : OpaqueWidget {
|
||||||
this->hasModule = hasModule;
|
this->hasModule = hasModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
~CardinalBlankWidget()
|
|
||||||
{
|
|
||||||
if (imageId >= 0)
|
|
||||||
nvgDeleteImage(args.vg, imageId);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
void draw(const DrawArgs& args) override
|
void draw(const DrawArgs& args) override
|
||||||
{
|
{
|
||||||
if (imageId == -2)
|
if (imageId == -2)
|
||||||
|
@ -79,8 +71,6 @@ struct CardinalBlankImage : OpaqueWidget {
|
||||||
imgHeight, 0, imageId, 1.0f));
|
imgHeight, 0, imageId, 1.0f));
|
||||||
nvgFill(args.vg);
|
nvgFill(args.vg);
|
||||||
}
|
}
|
||||||
|
|
||||||
OpaqueWidget::draw(args);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue