Browse Source

Fix unmovable Cardinal blank panel

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 3 years ago
parent
commit
e1c629ee5e
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 2 additions and 12 deletions
  1. +1
    -1
      plugins/Cardinal/plugin.json
  2. +1
    -11
      plugins/Cardinal/src/Blank.cpp

+ 1
- 1
plugins/Cardinal/plugin.json View File

@@ -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"
] ]


+ 1
- 11
plugins/Cardinal/src/Blank.cpp View File

@@ -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…
Cancel
Save