File tree 1 file changed +2
-15
lines changed
neothesia-core/src/render
1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ use crate::{
4
4
render:: { QuadInstance , QuadPipeline } ,
5
5
render:: text:: { TextInstance , TextPipeline } , // Move to text module
6
6
utils:: Point ,
7
+ piano_layout:: { Key , KeyboardLayout } ,
7
8
} ;
8
9
9
10
pub struct GuidelineRenderer {
@@ -51,7 +52,7 @@ impl GuidelineRenderer {
51
52
52
53
/// Reupload instances to GPU
53
54
fn reupload ( & mut self ) {
54
- if !self . vertical_guidelines {
55
+ if ( !self . vertical_guidelines ) {
55
56
return ;
56
57
}
57
58
@@ -179,17 +180,3 @@ impl GuidelineRenderer {
179
180
}
180
181
}
181
182
182
- impl KeyboardLayout {
183
- pub fn white_keys ( & self ) -> impl Iterator < Item = & Key > {
184
- self . keys . iter ( ) . filter ( |k| !k. is_black ( ) )
185
- }
186
-
187
- pub fn black_keys ( & self ) -> impl Iterator < Item = & Key > {
188
- self . keys . iter ( ) . filter ( |k| k. is_black ( ) )
189
- }
190
-
191
- pub fn height ( & self ) -> f32 {
192
- self . height
193
- }
194
- }
195
-
You can’t perform that action at this time.
0 commit comments