mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
fix: shape_ prefix to is_set
This commit is contained in:
@@ -31,7 +31,7 @@ static inline shape_row shape_get_row(shape const shape, uint8_t const index) {
|
||||
return shape >> (((SHAPE_HEIGHT - 1) - index) * SHAPE_WIDTH) & 0xF;
|
||||
}
|
||||
|
||||
static inline bool is_set(shape_row const row, uint8_t const index) {
|
||||
static inline bool shape_is_set(shape_row const row, uint8_t const index) {
|
||||
return (row >> ((SHAPE_WIDTH - 1) - index) & 1) != 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user