Commit 785d8af
[afterimage] correctly normalize 5-bit bmp color to 32-bit buffer
This is needed for correct color normalization, since buf-> expects a range between 0 and 255 but data contains 5-bit colors from 0 to 31.1 parent e952913 commit 785d8af
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments