Mercurial > hg > dmlib
comparison tools/libgfx.c @ 1615:2f8f2f7a42c8
Constify.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 15 May 2018 12:38:55 +0300 |
parents | b2fe49401465 |
children | 36d073c45327 |
comparison
equal
deleted
inserted
replaced
1614:b2fe49401465 | 1615:2f8f2f7a42c8 |
---|---|
1599 else | 1599 else |
1600 return dmf_read_str(fp, buf, bufLen); | 1600 return dmf_read_str(fp, buf, bufLen); |
1601 } | 1601 } |
1602 | 1602 |
1603 | 1603 |
1604 void dmDecodeBitPlane(Uint8 *dp, Uint8 *src, const int width, const int nplane) | 1604 void dmDecodeBitPlane(Uint8 *dp, const Uint8 *src, const int width, const int nplane) |
1605 { | 1605 { |
1606 for (int xc = 0; xc < width; xc++) | 1606 for (int xc = 0; xc < width; xc++) |
1607 { | 1607 { |
1608 const Uint8 data = (src[xc / 8] >> (7 - (xc & 7))) & 1; | 1608 const Uint8 data = (src[xc / 8] >> (7 - (xc & 7))) & 1; |
1609 dp[xc] |= (data << nplane); | 1609 dp[xc] |= (data << nplane); |