Skip to content

Commit 1fff6cd

Browse files
committed
Fix responsive sizing of EMGJoystick Widget
1 parent 9d79d7d commit 1fff6cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OpenBCI_GUI/W_EMGJoystick.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class W_EMGJoystick extends Widget {
114114
//Make a unit circle constrained by the max height
115115
int _padding = 30;
116116
int distanceToUse = h > w ? w : h;
117-
polarWindowDiameter = distanceToUse - _padding*2 - EMG_PLOT_OFFSET; //Shrink the X/Y plot so that the EMG displays fit on the outside
117+
polarWindowDiameter = distanceToUse - _padding*2 - EMG_PLOT_OFFSET*2 - BAR_CIRCLE_SPACER*2; //Shrink the X/Y plot so that the EMG displays fit on the outside
118118
polarWindowHalfDiameter = polarWindowDiameter / 2;
119119
polarWindowX = x + w / 2;
120120
polarWindowY = y + h / 2;

0 commit comments

Comments
 (0)