Skip to content

Commit 756c0f9

Browse files
author
Julien Castelain
committed
Fix compiler error in the ColorShaders sketch
This fixes the following compiler error ``` Gui.pde:9:0:9:0: The function captionLabel() does not exist. ``` Closes genekogan#1
1 parent 8e11daf commit 756c0f9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ColorShaders/Gui.pde

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ void setupGui() {
66

77
DropdownList guiShaders = cp5.addDropdownList("selectShader");
88
guiShaders.setPosition(480, 25).setSize(240, height-10).setItemHeight(25).setBarHeight(25);
9-
guiShaders.captionLabel().set("shaders");
10-
guiShaders.captionLabel().style().marginTop = 1;
11-
guiShaders.captionLabel().style().marginLeft = 1;
9+
guiShaders.setCaptionLabel("shaders");
10+
1211
for (int i=0; i<shaders.size(); i++) {
1312
guiShaders.addItem(shaders.get(i).path, i);
1413
}

0 commit comments

Comments
 (0)