mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix operator precedence #95
This explains why our dimmed areas had vertical stripes and improves quality
This commit is contained in:
@@ -463,8 +463,8 @@ static int dimRect(lua_State *L) {
|
||||
for(cy = 0; cy < h; cy++) {
|
||||
for(cx = 0; cx < w/2; cx++) {
|
||||
*(dstptr+cx) =
|
||||
*(dstptr+cx) >> 1 & 0xF0 |
|
||||
*(dstptr+cx) & 0x0F >> 1;
|
||||
( *(dstptr+cx) >> 1 ) & 0xF0 |
|
||||
( *(dstptr+cx) & 0x0F ) >> 1;
|
||||
}
|
||||
dstptr += dst->pitch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user