Changeset a35b458 in mainline for uspace/app/tetris/shapes.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tetris/shapes.c
r3061bc1 ra35b458 96 96 { 97 97 const int *o = shape->off; 98 98 99 99 if ((board[pos]) || (board[pos + *o++]) || (board[pos + *o++]) || 100 100 (board[pos + *o])) 101 101 return 0; 102 102 103 103 return 1; 104 104 } … … 111 111 { 112 112 const int *o = shape->off; 113 113 114 114 board[pos] = onoff ? shape->color : 0x000000; 115 115 board[pos + *o++] = onoff ? shape->color : 0x000000;
Note:
See TracChangeset
for help on using the changeset viewer.