Skip to content

Commit

Permalink
Version upgrade for font fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kockie69 committed Dec 4, 2021
1 parent 0b46e7d commit 19eb68a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"slug": "RPJ",
"name": "RPJ",
"version": "2.0.5",
"version": "2.0.6",
"license": "GPL-3.0-or-later",
"brand": "RPJ",
"author": "Robert Kock",
Expand Down
15 changes: 14 additions & 1 deletion src/TuxOn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,20 @@ TuxOnModuleWidget::TuxOnModuleWidget(TuxOn* module) {
module->display->setDisplayFont(pluginInstance,asset::system("res/fonts/ShareTechMono-Regular.ttf"));
addChild(module->display);
}

else {
// Fill the display for the module browser
Display *display = new Display(WIDTH);
display->box.pos = Vec(5, 40);
display->box.size = Vec(WIDTH, 250);
display->setDisplayFont(pluginInstance,asset::system("res/fonts/ShareTechMono-Regular.ttf"));
display->fileDesc="And on Sunday your mates were toasting you with champagne down the pub";

// Draw waveform
/*for (int i=0; i < WIDTH-1; i++ ) {
display->displayBuff[i]=sin(i);
}*/
addChild(display);
}
{
button = new ButtonSVG();
button->box.pos = Vec(192, 35);
Expand Down

0 comments on commit 19eb68a

Please sign in to comment.