Fix documentation regarding cell_bitmap indexing
This commit is contained in:
parent
84eccbf077
commit
e0a5f5fd3f
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ struct quirc_code {
|
||||||
* is a bitmask giving the actual values of cells. If the cell
|
* is a bitmask giving the actual values of cells. If the cell
|
||||||
* at (x, y) is black, then the following bit is set:
|
* at (x, y) is black, then the following bit is set:
|
||||||
*
|
*
|
||||||
* cell_bitmap[i << 3] & (1 << (i & 7))
|
* cell_bitmap[i >> 3] & (1 << (i & 7))
|
||||||
*
|
*
|
||||||
* where i = (y * size) + x.
|
* where i = (y * size) + x.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue